Tag Archives: shell

find(1) abuse

A colleague wanted to find all the files that end up *.disp or *.frag. Easy enough, right? In the shell you can say *.{disp,frag}. $ ls *.{disp,frag} foo.disp foo.frag$ ls *.{disp,frag} foo.disp foo.frag Except that this doesn’t work with find: $ find . -name ‘*.{disp,frag}’$ find . -name ‘*.{disp,frag}’ Why not? Because braces aren’t globs, […]