Stan said:
Could someone please translate this into english please. This is part
of obfuscation script
thanks
perl -n -i.bak -e "if (/([0-9]+\t)([A-Z0-9]*)(.*)$/) { print $1 .
\"58\" x (length($2) / 2) . $3 . \"\n\"; } else { print; }"
TBL_BlobData.dat
1. Start the Perl interpreter and execute a Perl program that does the
following:
2. Open a temporary file for writing.
3. Open the file TBL_BlobData.dat for reading.
4. Read each line in the input file and do the following:
5. If the line contains one or more decimal digits followed by a tab
character followed by zero or more decimal digits or upper-case English
alphabet characters, write the first set of digits followed by the
string "58" repeated one-half the number of times there are characters
in the second digit-upper-case-character string followed by the rest of
the original line and a newline to the output file. Otherwise, copy
the original line (with its original newline) to the output file.
6. When all of the input file has been read, close both files, rename
the original file to TBL_BlobData.dat.bak and rename the temporary file
to TBL_BlobData.dat.
7. Quit
HTH