Skip to content

Instantly share code, notes, and snippets.

@50l3r
Last active May 18, 2023 12:18
Show Gist options
  • Save 50l3r/14300b2ad854c1095a93f3451f10f7c1 to your computer and use it in GitHub Desktop.
Save 50l3r/14300b2ad854c1095a93f3451f10f7c1 to your computer and use it in GitHub Desktop.
Comandos útiles de linux
# 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