The replace tag has no wiki summary.
0
votes
2answers
125 views
Is it possible to change disk in RAID0 array of Intel Rapid Storage Tehnology?
My BIOS started to report red line with error for one of 2 drives in RAID0 array during boot.
But file system appears to be working without any visible problems, so I was able to make system image and ...
0
votes
1answer
92 views
Debian, Search and replace iframe injection [duplicate]
We're running a Debian server and we have a malware or something doing code injection.
I know how to search and replace this string :
<iframe src="http://ingvar2000.no-ip.org/jc/rss.php" ...
0
votes
1answer
283 views
postfix header_checks using regexp proper setup
I just can't seem to figure out why header_checks are not being evaluated.
I'm on Ubuntu 12.04, postfix 2.7, dovecote, spamassasin, clamav, amavis.
I add following line to /etc/postfix/main.cf :
...
-2
votes
3answers
612 views
sed replace text - escape characters
I have a mysqldump file in which I want to replace the following text <a href="/tag/ with <a href="http://www.mydomain.com/tag/ but can't find a way to correctly escape all special characters.
...
1
vote
1answer
106 views
sed replace inside shell file
I have a shell file which needs to perform a replace of some text in a php file.
The line that needs replacing is:
$database = $db."_db";
The actual sed command needs to contain a variable so not ...
2
votes
5answers
159 views
Why isn't sed working?
I have a file that has a single line with a lot of ! characters. I want to remove all of the ! characters.
I tried this:
sed s/!// myfile
and this:
sed 's/!//' myfile
and this:
sed ...
0
votes
1answer
130 views
PowerShell -replace operator exhibits quirky behavior with particular data
The presence of the special PowerShell variable $_ in the replacement string causes odd behavior; I am wondering if there is something about escaping I am missing or if this is just a defect.
The ...
2
votes
2answers
145 views
find and replace text with sequence of numbers [closed]
I need to replace a word in a file like this
text text pc text text
text text pc text text
text text pc text text
i need to replace pc with pc1, pc2 .... etc
text text pc1 text text
text text pc2 ...
16
votes
2answers
2k views
RAID-6: better to replace two dead drives at the same time, or one at a time?
We have a 16-drive RAID-6 that has three problem drives. Two are already dead, and the third is giving SMART warnings. (Nevermind how it got in such a bad state.)
Obviously we want to replace the ...
2
votes
3answers
2k views
Replace text on MySQL - Wildcards to replace certain variable parts?
I'm trying to apply a text replace on my WordPress MySQL database. I need to delete part of the current images html code, but this part of the text is variable, althouth there is a part that never ...
0
votes
2answers
231 views
Replace current primary dns server without downtime
I'm planning to upgrade my primary dns server. To avoid a downtime i'm planning to create vps where i will have same configured dns server. Till i reboot primary dns server i'm planing to change VPS ...
0
votes
2answers
1k views
MySQL, replacing with… nothing (delete those, please!)
I'm trying to purge my WordPress content from "false" carriage return (CR). These are caused after a migration of my content, that now presents from time to time a code that makes the web ...
1
vote
5answers
3k views
Replacing a dead hard drive in RAID 5 with a different type
One of the drives failed in my server configured with RAID 5, and I can't find a exact replacement. From my understanding, RAID 5 supports drives with different sizes. Is this safe? Any ...
2
votes
2answers
135 views
Replacing 2000 DC with a 2008 DC
We currently have a 2000 DC and a 2003 DC. We want to remove the 2000 DC completely and replace it with a 2008 DC. Can we promote the 2008 DC using the 2003? I believe i've read you can not from a ...
0
votes
1answer
577 views
Textwrangler (OS X) — Simple Text Macro Help Needed
I often, when parsing log/error files, need to replace < and < and > with > in order to be able to efficiently understand what's going on in the files. I know TextWrangler has a macro ability ...
0
votes
1answer
711 views
Squid packet injection / replace
I have a server which will act as a proxy, using squid. My goal is to have something replace outgoing data. I tried ettercap, no luck whatsoever. The idea is, whatever-will-replace-data needs to run ...
1
vote
3answers
332 views
Replace text with spaces in MySQL
I'm trying to do a global replace of search in my database, which has a lot of articles with a double carriage return because of this code:
<p> </p>
I'd like to replace this in my ...
-1
votes
1answer
454 views
Mass search / replace string from ssh?
I am in the process of selling a network of 60 sites, they all have adsense with the same publisher id (google_ad_client="pub-xxxxxxxxxxxxxxxx") in all the files in the /home/ folder.
How can I do a ...
1
vote
2answers
621 views
MySQL/Apache: Replace spaces with underscores only in certain URLs
I'm having a problem with some images I'm using on my WordPress blog. After a migration I renamed every image replacing spaces with underscores, so
HIDDEN_264_4062_FOTO_IDF los MID.jpg
was renamed ...
0
votes
1answer
86 views
Sed Replace Help
I need some assistance with some sed replaces:
sed -ri 's#logging {
/* If you want to enable debugging, eg. using the 'rndc trace' command,
* named will try to write the 'named.run' file ...
1
vote
1answer
576 views
replace text in file without overwriting file
I want to use the command line to edit a text file but not overwrite it. I want to preserve the owner, group, and permissions of the file.
I have a file that holds a count of the number of times a ...
2
votes
4answers
424 views
Replacing an ATA-100 hard drive
I was instructed to replace the hard drive in an old laptop, a Dell Latitude D505. I'm suspecting that there was a head crash when someone moved the laptop while it was turned on. In the ...
2
votes
2answers
1k views
Can I upgrade a Windows 2000 domain to 2008 and demote the 2000 server without clients attached?
We're planning to replace a Windows 2000 domain controller with a new 2008 DC (new hardware).
We've elected to take the route of getting the 2000 domain schema up-to-snuff, join the 2008 server, ...
4
votes
2answers
222 views
Perl search & replace
How can I use search and replace to change the contents of a file.
I need to be able to change the 'all to none' and/or 'none to all' without having to manually do it every time for hundreds of ...
2
votes
1answer
2k views
Is there an Icacls funtion similar to /replace in subinacl?
My company has been utilizing the subinacl tool to fix SIDs that change unexpectedly. We are now switching over to Windows 7 and the subinacl tool is no longer utilized. I am trying to find the code ...
0
votes
2answers
64 views
Strip text from some delimited fields in a list
Wondering what the fastest way would be to strip the text from just some delimited fields in a list.
My list looks like this:
text text:number:text:text:text:text:*:*:*:*:*:*:*:*:*:*:*:*:*:*:*:*
...
0
votes
5answers
2k views
How to recursively search and replace from command line on unix/linux system
So I want to change several files at one with one command. This is what I have so far:
find -regex ".*\.ext$" | xargs grep -l searchText 2> /dev/null | xargs -i sed 's/searchText/replaceText/' ...
0
votes
5answers
621 views
Search for index.php and index.html and replace string
I recently had some sort of Malware on my computer that added to all index.php and index.html ON THE WEBSERVER! the following string(s):
echo "<iframe src=\"http://fabujob.com/?click=AD4A4\" ...
4
votes
1answer
338 views
Replace 2000 domain controller
I have a pair of Windows 2000 domain controllers. The machine that currently hosts GC is getting tired and is pretty old as far as hardware. I want to replace it with a newer machine I have lying ...
3
votes
5answers
2k views
What is a good bulk find / replace tool for windows?
I'm looking to find / replace in alot of files and was wondering if anybody could recommend some good tools for Windows. I'd prefer them to be free.
Thanks
4
votes
8answers
3k views
How often does your company replace all its servers? [closed]
Companies I have worked for replace them every 3 years