
17 Sep
2013
17 Sep
'13
10:06 a.m.
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/