Questions tagged [replace]
52 questions
21
votes
4 answers
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 dead drives before the one that is still working, but…
Warren Young
- 472
- 1
- 5
- 19
6
votes
5 answers
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 recommendations, like choosing the same manufacturer or…
jassuncao
- 185
- 1
- 3
- 9
5
votes
8 answers
How often does your company replace all its servers?
Companies I have worked for replace them every 3 years
Techboy
- 1,540
- 7
- 31
- 49
5
votes
2 answers
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 lines.
below is a sample text file with lines numbers…
user36101
- 53
- 3
4
votes
1 answer
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 :
header_checks = regexp:/etc/postfix/header_checks
And…
WJR
- 321
- 1
- 4
- 16
4
votes
1 answer
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 around. Ideally I want to keep the same name and…
AudioDan
- 398
- 1
- 14
3
votes
1 answer
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 replace, but cannot understand how to use wildcards…
Roland
- 33
- 2
3
votes
5 answers
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 's/"\!*"//' myfile
But they all just print out all of the "!".
I…
Greg_the_Ant
- 489
- 7
- 25
3
votes
1 answer
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 piece of equipment is used. This file lets me know…
joshxdr
- 257
- 3
- 15
3
votes
2 answers
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, upgrade it to a DC, and after replication demote the…
techie007
- 1,892
- 17
- 24
2
votes
4 answers
Find and replace string between two delimiters
How do I replace a string between two delimiters?
Some of the answers I found are close, but I think my need is a little more complex.
I.e. smb.conf contains a blank line between shares. I want to target the share I want to update. The first…
Brian Cuttler
- 41
- 4
2
votes
1 answer
Remote Desktop Gateway server is temporarily unavailable after updating SSL Certificate
The SSL cert for our RDS Web Gateway expires end of July.
I have already got a replacement SSL for the next year.
However, even though it is the same cert (same subject no SANs) I get a Remote Desktop server is temporarily unavailable error when…
Martin
- 41
- 1
- 7
2
votes
1 answer
How can I use Ansible to conditionally append a line in a file?
I'm trying to create an Ansible task that sets up trim/discards. I have a playbook that takes care of everything else (LVM, fstrim), but I can't figure out how to get crypttab configured properly.
I'm trying to use the replace module to append…
Mark Caudill
- 111
- 6
2
votes
5 answers
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
Richard
- 627
- 2
- 9
- 19
2
votes
2 answers
find and replace text with sequence of numbers
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 text text
text text pc3 text text
How can i do this…
cosmin
- 121
- 1
- 2