Replace a string in multiple files with perl
Always keep that somewhere.
perl -pi -e 's/oldstring/newstring/g' *.txt
Written by Maxime VALETTE
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Perl
Authors
janosgyerik
25.16K
Jean-Remy Duboc
12.25K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#