Hi, welcome to LQ!
Something like
Code:
find . -type f -name \*exp | xargs -i sed -i.ori 's@#!../../../../TCL-Source/work/bin/expect@#!/usr/bin/expect@' {}
might do the trick. Untested, but you hopefully get the idea.
What we do is start searching in the current directory, look
for everything that's a) an ordinary file and b) ends in .exp.
We send all the found files through sed and have it in-place
replace the string "#!../../../../TCL-Source/work/bin/expect"
with "#!/usr/bin/expect", and creating a back-up file with
the extension .ori tacked on.
Cheers,
Tink