Script to search files in subdirectories and process
There are many times when there is a need to search files of a particular type in sub directories for further processing of the files. Manually go through a tree structure of directories and sub directories can waste a lot of time and effort and in the bargain some files may get skipped. The below is a very simple script where you can search for a particular file type in sub directories and work on the files accordingly.
find $dirnam -type f -print0 | while read -d $’