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
Related posts:
[...] using sed, Perl can also replace file in place with [...]
One Trackback/Pingback
[...] using sed, Perl can also replace file in place with [...]
Post a Comment