Sed
April 30, 2008
I feel so lame that I never understood how to use sed properly before. Usually if I wanted to replace one string in a bunch of files I'd use a python script for the task or some other quick. custom solution. However, sed wins with
sed -i.bak -s -e s/old/new/g *.txt
I've been using Linux for 10 years and I just figured that out?! What is wrong with me?