开发者

suggestion to run Macros with a large number of html files

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜