Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Find all JPEG files in a directory

by davidrw (Prior)
on Aug 11, 2005 at 20:30 UTC ( #483120=note: print w/ replies, xml ) Need Help??


in reply to Find all JPEG files in a directory

First, how do you defing "find JPEG"? By extension only? by content? File::Find (or File::Find::Rule) and File::MimeInfo::Magic are you starting places for doing it in perl. However, could you just do this in the shell instead?

# just a driectory: ls /some/dir/*.jpg > /tmp/list.txt # recursive solution: find /some/dir/ -name *.jpg > /tmp/list # a directory, but look at content: file /some/dir/* | grep -i jpeg


Comment on Re: Find all JPEG files in a directory
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://483120]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2015-07-05 22:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls