3 ms·
The best is when you mix filename expansion and brace expansion : > ls *.{png,jpg,bmp,gif} But this gives error if there is no jpg files. In bash, you can a
by Rexxar 15y ago
The best is when you mix filename expansion and brace expansion :
> ls *.{png,jpg,bmp,gif}
But this gives error if there is no jpg files. In bash, you can activate the extglob mode with "shopt -s extglob" and do this :
> ls *.@(png|jpg|bmp|gif)
http://www.faqs.org/docs/bashman/bashref_35.html http://www.faqs.org/docs/bashman/bashref_35.html