Er1k
2012-01-30 11:02:32
Yeah I know it is kind of useless, but nevertheless I thought it's a nice idea to share it and hopefully get some bash.
So this is basically a batch script that wipes your user info from the script and outputs the file to clean.simba. You can drag the script to the .bat file and it will do the rest for you :D
P.S Tested only on win7 x64
For those who are interested, I used sed from gnuwin32 http://gnuwin32.sourceforge.net/packages/sed.htm to perform the regex search/replace.
A sample package is attached, for those who don't bother downloading the sed binary and dlls from the said link.
Comments are welcome.
So this is basically a batch script that wipes your user info from the script and outputs the file to clean.simba. You can drag the script to the .bat file and it will do the rest for you :D
P.S Tested only on win7 x64
echo off
if [%1]==[] (
echo Drag file to .bat to work
)
if not [%1]==[] (
echo Running info cleaner...
sed "s/ *[nN][aA][mM][eE] *:= *'.*' *;.*/Name := '';\/\/name replaced by sed/g" %1
| sed "s/ *[Pp][Aa][Ss][Ss] *:= *'.*' *;.*/Pass := '';\/\/pass replaced by sed/g" |
sed "s/ *[Pp][Ii][Nn] *:= *'.*' *;.*/Pin := '';\/\/Pin replaced by sed/g"| sed "s/
*[Pp][Ll][Aa][Yy][Ee][Rr][Ss]\[.*\]\.[nN][aA][mM][eE] *:= *'.*' *;.*/Players[].Name
:= '';\/\/name replaced by sed/g" | sed "s/ *[Pp][Ll][Aa][Yy][Ee][Rr][Ss]\[.*\]\.
[pP][aA][sS][sS] *:= *'.*' *;.*/Players[].Pass := '';\/\/Pass replaced by sed/g" |
sed "s/ *[Pp][Ll][Aa][Yy][Ee][Rr][Ss]\[.*\]\.[pP][iI][nN] *:= *'.*' *;.*/Players
[].Pin := '';\/\/Pin replaced by sed/g"> cleaned.simba
echo Operation completed! Check script cleaned.simba)
pause
For those who are interested, I used sed from gnuwin32 http://gnuwin32.sourceforge.net/packages/sed.htm to perform the regex search/replace.
A sample package is attached, for those who don't bother downloading the sed binary and dlls from the said link.
Comments are welcome.