MONKS! I am in need of assistance. Here is my problem. I have to log onto a server using ftp and retrieve only certain files from that server. There are about 40 different file patterns I have to search for and download via ftp. An example of the type of pattern is: CWCG0507.M.00047843.gz. All of the files share the .M. and the .gz extension, and that's about all they have in common. So I have to search for files where the field before the first "." varies. For example, these are just two of the approximately 30 extensions I need to search for: DVD.*M.*gz YDD.*M.*gz So my question is, how do I get a listing of all of the *.gz files on the ftp server and then search for just the patterns that I need to match? This has been driving me crazy for several days now. Thanks. Mike R

In reply to pattern matching with wildcards... by mikerzz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.