Skip to content

Instantly share code, notes, and snippets.

@elcascarudo-dev
Last active May 13, 2020 00:28
Show Gist options
  • Save elcascarudo-dev/824d029acf50a97885db8f08e747bed9 to your computer and use it in GitHub Desktop.
Save elcascarudo-dev/824d029acf50a97885db8f08e747bed9 to your computer and use it in GitHub Desktop.
Comandos Linux ( sed )
# Busca y reemplaza textos en un fichero, el parametro "-i" hace persistente el reemplazo
sed -i 's/texto-a-buscar/texto-a-reemplazar/g' "Fichero o directorio"
# el "%" lo utilizamos cuando buscamos URL
sed -i 's%texto-a-buscar%texto-a-reemplazar%g' "Fichero o directorio"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment