I am not looking to search inside the files.
... then describing your requirements as "grep" is misleading.
Typically, you would use the FTP command mget monk*, but Net::FTP doesn't seem to support that (although it is not listed as unsupported either?).
If all the files you want will be in a single directory, you might do an ls or dir command to retrieve the file list, then filter that yourself and issue get commands for each.
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [d/l] [select] |
... then describing your requirements as "grep" is misleading.
I wouldn't say so. IMHO, the OP clearly indicated that s/he wanted to grep the fileNAMES.
There lies some irony that for filtering the filenames, grep is likely be used.
you would use the FTP command mget monk*, but Net::FTP doesn't seem to support that
It halfway does. You have the member function cmd which, as I understand, can be used to issue any FTP command, and you can use supported to see whether a particular command is supported by the FTP server.
--
Ronald Fischer <ynnor@mm.st>
| [reply] [d/l] [select] |
There lies some irony that for filtering the filenames, grep is likely be used.
You're right--if the "grep" in question is grep, and not grep.
The real irony here is that I, an avowed 'doesn't do *nix' man, assumed the latter rather than the former, when I read the title!
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] |