Replace text from a MySQL dump using cat (or something else) in shell
Posted
by Cy
on Stack Overflow
See other posts from Stack Overflow
or by Cy
Published on 2010-04-20T13:18:27Z
Indexed on
2010/04/20
13:33 UTC
Read the original article
Hit count: 307
I've got a database dump in MySQL where I want to replace ocurrencies of paths that are in the dump as plaintext.
In this particular case I'd like to replace:
/var/www/
for
/home/www/
How could I safely do that using cat or any other shell tool?
© Stack Overflow or respective owner