This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ===== Tips Bash ===== Reemplazar un string, por ejemplo este script cambia la fecha de los nombres de archivo del directorio actual: <code> for i in $(ls); do cp $i ${i/1504/1506};done </code> Este tip no es de bash, es de sed pero se usa mucho, reemplazar un texto dentro de un archivo, por ejemplo se cambia APR por JUN: <code> for i in $(ls); do sed -i 's/APR/JUN/g' $i;done </code> Esto puede simplificarse asÃ: <code> sed -i 's/APR/JUN/g' *nmon </code>