|
|||||
| | |||||
#!/bin/sh
# from the O'Reilly vi book chapter 7 section 4
# on how to run an ex commands from a bash script
# wont' need to open vi on all the files and repeat these substitutions
# on each file anymore!!
for file in $*
do
ex - $file << end-of-script
g/thier/s//their/g
g/writeable/s//writable/g
wq
end-of-script
done
| Leave a Reply |