micharg
Friday 22 April 2011
Replace a string with another string in all files
$ sed -i 's/old-word/new-word/g' *.txt
$ perl -pie 's/old-word/new-word/g' input > output
References
http://www.cyberciti.biz/faq/unix-linux-replace-string-words-in-many-files/
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment