This is where find
in combination with xargs
will help.
find /path/to/files -name "pattern*" -print0 | xargs -0 ls
Note from comments: xargs
will help if you wish to do with the list once you have obtained it from find
. If you only intend to list the files, then find
should suffice. However, if you wish to copy
, delete
or perform any action on the list, then using xargs
instead of -exec
will help.