开发者

suggestion to run Macros with a large number of html files

开发者 https://www.devze.com 2023-03-10 04:41 出处:网络
I have hundred of pages in a server. Html pages for sure, want to execute some Macros to find and replace all the headers, includes with another block of code.

I have hundred of pages in a server. Html pages for sure, want to execute some Macros to find and replace all the headers, includes with another block of code.

What do you suggest? i have read some people recommends python.

I can run the script 开发者_如何学运维in localhost with php or python.

Thanks !


Use find and replace(-all) in your HTML editor.


You can do this with Perl. Search and replace across many files with a perl one-liner.

perl -pi -e 's/about news\.$/about selling advertising space\./' file*
0

精彩评论

暂无评论...
验证码 换一张
取 消