Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^3: Find all JPEG files in a directory

by Transient (Hermit)
on Aug 11, 2005 at 20:47 UTC ( #483129=note: print w/replies, xml ) Need Help??

in reply to Re^2: Find all JPEG files in a directory
in thread Find all JPEG files in a directory

You're right on that one... this is supposed to be supported, but I can't get it to work on AIX:
find . -name "*.jp{,e}g"

Replies are listed 'Best First'.
Re^4: Find all JPEG files in a directory
by gellyfish (Monsignor) on Aug 11, 2005 at 21:04 UTC

    I think you might need to use single quotes around the argument to -name lest it get expanded by the shell before it gets passed to find


      well, find . -name "*.jpg" will work just fine, so the double-quotes are ok... it's just the curly braces that are being loopy

      I just checked and AIX doesn't support {}, but Linux is supposed to (at least a cursory glance at a website said it did), although, I'm sure that varies based upon build.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://483129]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (1)
As of 2018-07-22 01:36 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (451 votes). Check out past polls.