micharg
Friday 22 April 2011
Replace String in text file with sed
replace all occurances (g) of string 'old' with 'new' in file 'file' in place (i):
$ sed -i "s/old/new/g" file
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment