Replace string pattern in all files in directory linux/mac
ack -l 'pattern' | xargs perl -pi -E 's/pattern/replacement/g'
Written by Alexey
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#