Feb 082010
sed: replace in place
Answer:
Newer version of sed allow you replace a file in place, no more redirection is needed.
# sed -i 's/abc/def/g' test.txt
The above command will replace all "abc" to "def" in the file test.txt
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
sed: replace in place
Answer:
Newer version of sed allow you replace a file in place, no more redirection is needed.
# sed -i 's/abc/def/g' test.txt
The above command will replace all "abc" to "def" in the file test.txt