21 October 2014

Replace sentence or word in file linux

For replace world in file

sed -i 's/OLd_text/new_text/g' fileName

ex sed -i 's/my_world/hello_world/g' hello.txt

output :-


For replace Sentence

No comments:

Post a Comment