Sed Replace Script
Quincey Robertson <[email protected]>
| Newsgroups | gmane.editors.sed.user |
|---|---|
| Message-ID | <[email protected]> |
Hi;
I have this script:
#! /bin/sed
for FILE in `find . -type f -name '*.py'`
do
sed 's/python/python2.4/g'${FILE}
done
When I try and run it I get this error:
[root]# ./do.sed
/bin/sed: -e expression #1, char 1: unknown command: `.'
Please advise.
TIA,
Quincey