I am in need of a way to script an iteration through an undefined amount of sub-directories.
I'm using kornshell to and awk. I've stripped the problem to this:
for file in $FILEPATH/*.txt
do
awk '
{
#some awk commands
}
'
done
So I need to change $FILEPATH/*.txt
so it drills into directories until the end, then the loop iterates through all text files, backs out a directory and iterates through text files once more until no more directories or text files were untouched.
For context, I need to parse through a database and run some commands on certain files. So these file structures could go on for a while.