Hi All, Actually My query is to enter in some path(directory) or folder first.

(i)Then there will be 20 to 30 files in both string & number format file names. I want to access only Number format files (Like 2345.45. 5432.321).

The problem here is there are 20 files with Number format file name, i've to read content in each file, by comparing with string value(which is created dynamically).

(ii)Once the string comparison is matched,in that file, i want to extract a value from EXIT(this will be present in all the file Like, EXIT : 0 or EXIT :1) using Grep Command.

(iii) After all these, i want to update this value(EXIT) in EXCEL or ACCESS with some comments. (OR) If the string comparison is not matched in then (ii) step , then i want update some comments in EXCEL or ACCESS.

(iii) Initially i'm trying this with windows server. If its possible, then i need to access unix server with credentials.

Please Can some one help me , how can i approach for this. As i'm new to perl. Anywayz i learning side by side. Just wanted to knw the approach.

Sorry for using improper format. I guess, atleast now its bit clear.


In reply to Access to directory -> Files -> contents & get the data by Sachin_dada

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.