5

automating a shell script to run across all the folders

view full story
linux-howto

http://www.unix.com – I would like to know how to automate an already made shell script (all the steps of all the commands done on a specific folder) by utilizing a list (a .txt) of all folder names that the shell scripts goes and executes For example: In the working folder called main/ there are subfolders named folder1, folder2, folder3.....folder100 and shell script shell.sh. vi shell.sh Code: perl automate.pl /home/main/folder1/test.txt > foldername_test.out perl automate_second.pl foldername_test.out > foldername_test_1.out This shell script has to be executed inside all the 100 folders (HowTos)