A simple for loop in Unix would be:
for FILE in $BASE_WORK_DIR/*.pdf
do
echo $FILE
done
This will echo all .pdf
files inside BASE_WORK_DIR directory.
What if BASE_WORK_DIR
contains sub directories as well which also contain the pdf file.
In that case how can I design my for loop to take all pdf files from BASE_WORK_DIR
as well as sub directories of BASE_WORK_DIR
?