Problem running bash script recursively over a number of subdirectories using osx
Hi,
I have a bash script (pt2.sh) that I would like to run on a number of directories. The directories are structured as follows:
Test1, within which there are 3 subdirectories which actually containg the files on which I wish to run the script (test1a, test1b, test1c). A .gz file is within each subdirectory (and is the target of the script), though the script will need to create additional files and then use those files before moving on. The script is designed to only work on the .gz file and the subsequence created files within the same directory.
I have been trying to run a script that
find . \*.gz -mindepth 2 -exec ./pt2.sh '{}' \;
but I keep getting errors stating the files that the scripts creates cannot be found.
Any suggestions would be greatly appreciated.
Best wishes,
GH
|