processes all your *.sh files, but combines them all into a single output to the screen.
You need to loop over the files, and capture the output of each one
Code:
# for all *.sh files
for i in *.sh ; do
mv $i $i.bak # make a backup file
sed 's!/data!!' $i.bak > $i # sed the backup, and put the results in the original
done
After you're happy all went well, then you can delete all the *.sh.bak files.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.