In the I-can’t-believe-I-didn’t-know-yet category, here’s a command-line find-replace:

sed -i 's/findthis/replacewith/g' thefile.txt

Or recursive, for all files under the current directory:

find ./ -type f -exec sed -i 's/findthis/replacewith/g' {} \;

From brunolinux.com.

Published on 13 October 2009 and tagged as
Browse articles... Browse tags...