Showing posts with label PERL. Show all posts
Showing posts with label PERL. Show all posts

Find and Replace from Command Line

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'

Read more ...