a simple question about shell scripting
Hallo,
I m a shell scripting newbie, and i m trying to create a shell script that search for some files names 'script', those files are located in the subdirectory of a directory named "folder", and for each file founded, i have to show the directory (full path) where the file was founded and pipe the file to some program.
the script must be something like that:
for each file found in the subdirectory tree of "folder"
do
"show the full path where the file was found, without the file name, like /root/folder/images"
enter this directory already showed ($cd directory)
"pipe the file to a program"
done
Thanks for help!!
|