Shopt is a builtin command in bash. Sometimes it can replace all rows of "find" commands.
#! /bin/bash shopt -s globstar for filein in /yourpath/** do if [ -f "$filein" ]; then echo "$filein" fi done;
[ /start ] Your browser does not support JavaScript: it should be enabled.