fl2gka
Last Updated: February 25, 2016
·
762
· dakdad
Cfd84a9daccbe0eedd3899f728e3db7f

Perl : Search and Replace text from a file

Very useful in command line, specially when you have a big file to go through.

perl -pi.bak -e "s/text to find/text to replace/g" *.txt

UPDATE: thanks telemachus for the correction!

Say Thanks
Respond

1 Response
Add your response

3655
Cfd84a9daccbe0eedd3899f728e3db7f

@telemachus Thanks for the informative comment! I have updated the post.

over 1 year ago ·