
On Tue, 17 Sep 2013, Jason White <jason@jasonjgw.net> wrote:
Matthew Cengia <mattcen@gmail.com> wrote:
mattcen@isis:tmp$ shopt -s nullglob mattcen@isis:tmp$ ls *.mkv *.mp4 *.avi a.mkv b.mp4
Excellent.
Yes, Matthew's suggestion works really well for interactive use. I couldn't work out how to make it run from a Makefile though.
Note that the find command also returns no errors if nothing matches the search criteria. There's an option to prevent it from recursively descending subdirectories, which my quick search of the manual page didn't locate but which I'm confident exists.
find . -maxdepth 1 -name "*.mkv" -o -name "*.avi" -o -name "*.mp4" Good idea, the above does what I need. Thanks for the suggestion. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/