ls -l *.mkv *.avi *.mp4

The above command will give me errors if I happen to have no .avi files or no 
.mkv files.

How can I write a command to give a list of all video files and not give an 
error if some don't exist?  Preferably in bash, but I'm willing to try another 
shell if necessary.

As an aside I'm not actually after running ls, the below is what I'm really 
trying to do:

for n in *.mkv *.avi *.mp4 ; do

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/
_______________________________________________
luv-main mailing list
[email protected]
http://lists.luv.asn.au/listinfo/luv-main

Reply via email to