find and replace string in files
Find and replace in a single file - VI editor-----------------------------------------------------------------
open vi editor
<http://www2.blogger.com/post-edit.g?blogID=26366170&postID=114535590336229335>
:%s/search_string/replace_string/g
Find and replace in multiple files
----------------------------------------------------
perl -pi -i 's/search_string/replace_string/g' *.txt
0 Comments:
Post a Comment
<< Home