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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.