Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

pulling file names from your PC

by JFarr (Sexton)
on Jan 11, 2006 at 17:42 UTC ( #522511=perlquestion: print w/replies, xml ) Need Help??

JFarr has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks. I need to be able to check if a file, which will change version names frequently, is in a directory, then I need to be able to grab that file name. I can't figure out how to do it. Help please.
For example, the file will be names something like Something_binaries- +R5.23.0.0_patch_V5.0.29.0_DiffList.txt. So I want to search a directory for*_patch_*_DiffList.txt, grab the file name and do whatever I need to do with it.
Is there a way to do this? I'm assuming there is, but have not been able to find what I'm looking for. It help if you know what key words you need for your search lol.

Replies are listed 'Best First'.
Re: pulling file names from your PC
by john_oshea (Priest) on Jan 11, 2006 at 17:57 UTC
      You mean glob, i.e. has been down for a while. Use [doc://XXXXX], and will link to the relevant keyword on For example, [doc://glob] gives glob.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://522511]
Approved by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2023-05-31 11:25 GMT
Find Nodes?
    Voting Booth?

    No recent polls found