I have actually already written a brief explanation of each command and what they do to the person in question. A summary is as follows:

finds all files in the current directory and subdirectories and then using perl and regular expressions replaces the data that matches after s/ with the data after the next / and does it globally throughout each file (/g).

To further explain, I gave the example that <username> is some given username in the file like 'joe' for the first command and that the second command is searching for a set of 1-3 digits followed by a '.' then another set of 1-3 digits followed by a '.' and then another set of 1-3 digits followed by a '.' and then another set of 1-3 digits (e.g. an IP address) and then replaces it with ********* (however many I put in the regex)

I am doing this because I need the code that I wrote minus any usernames and passwords that might be in a given file.

I am attempting to make things faster and easier for them since they have said they will happily supply it, but since there are 40k files in the directory tree (most of which are actually open source, but they have no way to know if I put a username/password in there without looking) it would be far simpler to do it this way than by hand, which would, take a very long time.

It would also seem that their person that would be able to explain the command to them is currently unavailable and I need to get this completed asap.

This is why I put it on here, so they have a good and reliable reference of what these commands actually do.


In reply to Re^2: Could someone please explain... by raisputin
in thread Could someone please explain... by raisputin

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.