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.
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…
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 "