First page Back Continue Last page Summary Graphics
Core Code
#!/bin/bash
orig="giles@shelluser.net"
replace="giles at dreaming dot org"
for file in $(grep -rl ${orig} $1/*)
do
echo $file
vim -c ":1,\$s/${orig}/${replace}/g" \
-c ":wq" $file
done
wrap it in politeness, but that's the core
"grep -l" means match only once and echo only the filename
-
Notes: