I had a situation where I had to find and replace in files with out creating new files and renaming them back, so after some research on Google I came up with this:
find . type –f | xargs perl –pi –e 's/foo/bar/g'
Find and Replace from Command Line
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment