Questions tagged [replace]

52 questions
2
votes
3 answers

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 changes. Is there some wildcard that I can use on a…
javipas
  • 1,332
  • 3
  • 23
  • 38
2
votes
2 answers

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 2000 server? Any insight here very helpful.
tech
  • 21
  • 1
2
votes
2 answers

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 to HIDDEN_264_4062_FOTO_IDF_los_MID.jpg But…
javipas
  • 1,332
  • 3
  • 23
  • 38
2
votes
4 answers

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 specifications, I found this about the hard drive: 30GB…
Pieter
  • 349
  • 1
  • 3
  • 10
2
votes
1 answer

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 equivalents of the subinacl functions for Icacls…
RedPheonix
  • 35
  • 2
  • 6
1
vote
1 answer

LINUX: multiq leaf not replaceable with tc

# uname -r 4.7.5-200.fc24.x86_64+debug # tc -s -d qdisc show dev ens3 qdisc mq 8001: root Sent 44589 bytes 340 pkt (dropped 0, overlimits 0 requeues 0) backlog 0b 0p requeues 0 qdisc fq_codel 0: parent 8001:1 limit 10240p flows 1024 quantum…
cherusk
  • 21
  • 5
1
vote
1 answer

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 kind of RAID configuration is set up on those?
Totor
  • 2,916
  • 3
  • 23
  • 31
1
vote
1 answer

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 time and replace them with another file. Something…
user206691
  • 11
  • 1
1
vote
1 answer

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 sure what i should be escaping and…
robjmills
  • 990
  • 9
  • 26
1
vote
2 answers

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 output of this code... $text = "WORD1 WORD2 WORD3…
Michael Sorens
  • 445
  • 2
  • 6
  • 17
1
vote
3 answers

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 rendering engine to "paint" a CR where I would like to…
javipas
  • 1,332
  • 3
  • 23
  • 38
1
vote
3 answers

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:

I'd like to replace this in my WordPress blog so instead of that appears... nothing, and so I can…
javipas
  • 1,332
  • 3
  • 23
  • 38
1
vote
1 answer

Replacement disk faults

I had a disk in my pool fault (raise too many errors). The number of I/O errors associated with a ZFS device exceeded acceptable levels. ZFS has marked the device as faulted. impact: Fault tolerance of the pool may be compromised. eid: 52 …
fcimeson
  • 13
  • 2
1
vote
1 answer

SED config-file with single quote

I have a config file which looks like this: $this->db_host = 'localhost'; $this->db_port = '3306'; $this->db_name = 'database'; $this->db_user = 'root'; Im trying to replace the values between the single quotes with…
friedulman
  • 53
  • 6
1
vote
1 answer

mask public IP addresses from any command output (for diagnostic)

I'm writing a script to extract information from BusyBox v1.25.1/Linux 2.6.36/router where the user can simply run the script and copy/paste the output into a submission form to request support. The script it's essentially a list of commands like…
rs232
  • 105
  • 1
  • 10