Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
1answer
31 views

Postifx header_checks cut off last part of subject

One of our main applications is sending out emails that have encoded subjects with base64 but that application is sending wrong characters at the end. I am looking at Header_checks with subject ...
1
vote
0answers
216 views

How to change / replace a failed “system” disk on EMC Clariion CX500?

On the first DAE, the first 5 disks are considered "special" because they host the OS of the storage array. One of those 5 disks is faulty : what is the procedure to change it? By the way, what ...
1
vote
1answer
84 views

Find and replace files in linux

I know how to find and replace certain string through files, but I'm interested how could I find and replace whole files? e.g. I would like to find all info.php files that were modified at specific ...
0
votes
1answer
21 views

Match Same column and replace the values

I have two tables City with codes and other is the employees table.The issue while inserting was that instead of the Code of the city the actual name was inserted.I need to replace them with the ...
0
votes
2answers
396 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
188 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
2k 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
3k 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
136 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
171 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
156 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
348 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
3k 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
3k 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
324 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
3k views

MySQL, replacing &nbsp; 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 &nbsp; code that makes the web ...
2
votes
5answers
8k 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
157 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
1k 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
1k 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
540 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
682 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
805 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
104 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
956 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
512 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 ...
3
votes
2answers
2k 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
233 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
3k views

Is there an Icacls function 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
68 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
660 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
349 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 ...
2
votes
5answers
5k views

What is a good bulk find / replace tool for windows? [closed]

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
5
votes
8answers
3k views

How often does your company replace all its servers? [closed]

Companies I have worked for replace them every 3 years