for item in * do if [ -f $item ] then sed 's/test/open/g' file.sh done
This program I believe looks for files within the folder I have placed this program in. And afterwards finds file.sh and replaces the word test with open, from what I understand from the sed (again forgive me if it is not true). How can I modify this so instead of one file this program looks through all of the .sh files in the program and finds the word test in all of them and replaces it with open. I'm sorry this is vague if so but this is all I have to work with.