Last active
May 18, 2023 12:18
-
-
Save 50l3r/14300b2ad854c1095a93f3451f10f7c1 to your computer and use it in GitHub Desktop.
Comandos útiles de linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Buscar y remplazar string en carpeta actual | |
find . -type f -exec sed -i 's,//dominio.com,//new.dominio.com,g' {} \; | |
# Buscar y remplazar string en carpeta especificada | |
grep -rnw '/var/www/vhosts/' -e 'dominio.com' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment