I have a list of files all over a file system e.g.
Code:
/home/1/foo/bar.tx
/www/sites/moose/foo.txt
I'm looking for strings in these files and want to replace each occurrence with a replacement string, e.g.
if I find: '#@!^\&@ in any of the files I want to replace it with: 655#@11, etc.
There are around 120 substitutions and around 4,600 files.
One issue: these strings are passwords
Hello All,
I need a sed command to find and replace below text in multiple files in a directory.
Original Text :-
Code:
"$SCRIPT_PATH/files"
Replace with :-
Code:
"$RESOURCE_FILE"
Thank you in advance !!!
Regards,
Anand Shah
Possible Duplicate:
My server's been hacked EMERGENCY
my php based website got infected with malware, which added something like this in the code:
<?php eval(base64_decode("DQplcnJvcl9yZXBvcnRpbmcoMCk7DQokcWF6cGxtPWh));
Now i want to replace all the "eval(" till its ending braces "));" with space or delete all those occurences, either with sed or other tools.
i have tried th
Hey guys.
Need a script to traverse all files and folders under "/appli/logs" and replace the string "Hello" with "Yellow" whereever found.
Code:
x86_64 x86_64 x86_64 GNU/Linux
When I use special characters the command to replace multiple files with a string pattern does nt work.
---------- Post updated at 12:33 PM ---------- Previous update was at 11:38 AM ----------
This works
Code:
perl -pi -e 's/100/test/g' *
This does nt work
Code:
perl -pi -e 's /\'100\'\,\'111\' /\&test/g' *
Hello there!
Hi Folks,
I have an html file which contains the below line in the body tagI am trying the replace hello with Hello Giridhar programatically.
Code:
<body>
<P><STRONG><FONT face="comic sans ms,cursive,sans-serif"><EM>Hello</EM></FONT></STRONG></P>
</body>
I have written the below code to replace the string and I am able t
I have a source file that contains multiple XML files concatenated in it. The separator string between files is <?xml version="1.0" encoding="utf-8"?>. I wanted to split files in multiple files with mentioned names. I had used a awk code earlier to spilt files in number of lines i.e.