On 2009-07-09, at 16:55, Aaron J. Grier wrote:
On Thu, Jul 09, 2009 at 02:36:27PM +0200, Abigail wrote:
$ grep 'foo bar' *.[ch]
$ display *.jpg
$ rm *.p[ml]
Oh, sure, it *could* all be done based on actual content, but while
you're looking at the first file, I'm already done processing the
directory.
I guess it's theoretically possible for the shell itself
...and every one of hundreds of other programs that need to know this
information...
to keep a
mapping of (pseudo-)extentions to file types, and then do globbing
based
on those. with data/resource filesystems, I imagine it would be
pretty
straight-forward.
No. Just. No.