To replace strings in multiple files, do the following:
$find -name '*.txt' -print0 | xargs -0 perl -pi -e 's/old/new/g'
Subscribe to:
Post Comments (Atom)
The purpose of this blog is to give knowledge back to the online community, which has given so much to me.
No comments:
Post a Comment