SyntaxFix
Write A Post
Hire A Developer
Questions
If you can change the shell used to run the command, you can use ZSH to do the job.
#!/usr/bin/zsh for file in /tmp/**/* do echo $file done
This will recursively loop through all files/folders.