Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Find all JPEG files in a directory

by Bob9000 (Scribe)
on Aug 11, 2005 at 20:45 UTC ( #483128=note: print w/replies, xml ) Need Help??


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

*.jpe?g

The shell might have something to say about that...

(Actually, Bourne-style shells will still pass it through in the likely event that nothing matches that glob, but it's not very safe.)

edit: And the only way to get the match you want from find is to use something like:

find dir -name \*.jpg -or -name \*.jpeg

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://483128]
help
Chatterbox?
[stevieb]: ahhh yes, it *is* a ref. I had forgotten that. I too have learned something. I quit too!!
[marioroy]: Is List::Util::XS a core Perl module?
[stevieb]: corelist List::Util::XS says "List::Util::XS was first released with perl v5.10.1"
[stevieb]: so yes, since v5.10.1 :)
[MidLifeXis]: According to [metaperl:// corelist], Perl 5.10.1
Lady_Aleena blurbles. One of her favorite modiles is now in "maintenance mode" in favor of a new fangled module.
[MidLifeXis]: D'oh. Slow out of the gate.

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (13)
As of 2017-05-24 17:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?