Find and replace text with slash characters

前端 未结 3 1326
清酒与你
清酒与你 2021-01-22 01:01

So I looked around on Stackoverflow and I understand finding and replacing text works something like this:

perl -pi -w -e \'s/www.example.com/www.pressbin.com/g;         


        
3条回答
  •  野的像风
    2021-01-22 01:40

    You can use other characters than '/' to specify patterns. For example:

    perl -pi -w -e 's,path/to/file,new/path/to/file,g;' *.html
    

提交回复
热议问题