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'
my views
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'
No comments:
Post a Comment