Script Finds no Files

view full story

http://www.linuxquestions.org – I am trying to use sed to replace a bunch of text in several hundred files, so I have this bash script that should iterate through all my files. It looks like this: #! /bin/sh for php in *.php; do ./run.sed $php done The problem being when I run it, it says on EVERY attempt at substitution: No such file or directory. I had to add a ./ in front of run.sed so the script could find that file. I have tried adding a ./ in front of *.php but it gives me that error of no file or directory. Any idea what I am doing wrong? (run.sed is a file of about 2000 substitutions, each php fil (HowTos)