Questions tagged [replace]
52 questions
0
votes
3 answers
Re-Write data in SQL file
So my solution to anonymize data on our backup server where we store backups of MySQL databases in .sql files is the following:
Created a script that copies the .sql file from the backup server to my local workstation, automatically imports it into…

Bert
- 1,028
- 1
- 16
- 33
0
votes
2 answers
Replace failed HDD Raid 5 with different size
One of the HDD on my server HP proliant DL 380 G7 failed, i have 6 hdd each 146gb sas 2.5 Hot plug.
Can i replace one HDD failed with larger size 450gb sas 2.5. Is the safe? And how the scenario for rebuild data.
Thanks.

Faishol
- 1
0
votes
1 answer
Windows server 2012 failover cluster replace shared disk
We have cluster of 2 nodes (Windows Server 2012) with file server role. There is resource group configured under cluster which have multiple shared disks. As one of the disk is having file system error we want to replace it with a new disk (LUN…

Amit G
- 1
- 3
0
votes
3 answers
sed replace unix path with variable that contain another unix path
I need to replace Unix path via sed with variable that contain another unix path in a bash script
Example:
another_unix_path=/another/unix/path
sed -i 's/ \/some\/path\/file.txt/ '$another_unix_path'/g' some_file.txt

vasek
- 13
- 1
- 1
- 3
0
votes
2 answers
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:*:*:*:*:*:*:*:*:*:*:*:*:*:*:*:*
And I want it to look like this:
text…
None
0
votes
6 answers
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/' > {}.new
What it does:
I find files with extension ext,…

Keith Bentrup
- 719
- 3
- 8
- 19
0
votes
1 answer
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 codes.I have like 2400 employees.What kind of…

Fhd.ashraf
- 113
- 1
- 2
0
votes
2 answers
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 necessary backups.
I want to purchase same size…

alpav
- 161
- 1
- 1
- 6
0
votes
1 answer
Debian, Search and replace iframe injection
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 :
I do it this…

Docteur_K
- 3
- 1
0
votes
5 answers
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 "
0
votes
3 answers
sed replace text - escape characters
I have a mysqldump file in which I want to replace the following text

George Tasioulis
- 2,019
- 2
- 17
- 17
0
votes
2 answers
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 dns server's ip to what Primary dns has so all…
user701012
0
votes
1 answer
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 but I can't figure out a efficient way to do this.
Since…

bobber205
- 241
- 1
- 6
- 17
0
votes
2 answers
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 alongside with squid on the same box.
Any ideas of…

Adrian A.
- 85
- 1
- 2
- 12
0
votes
1 answer
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 in the $directory (/var/named").
* By…

JPerkSter
- 285
- 3
- 12