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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |