http://www.perlmonks.org?node_id=483136


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

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

/J\

Replies are listed 'Best First'.
Re^5: Find all JPEG files in a directory
by Transient (Hermit) on Aug 11, 2005 at 21:17 UTC
    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.