sed -i 's/word1/word2/g' inputfile
-i for edit in place (the same file), don't create a new one
s for substitute
g for global replacement, if no g then replace one occurrence only.
No comments:
Post a Comment