terminal

Bash - How to dynamically evaluate and set a variable

One of the things that opens the gate to truly code reusation in Bash is, in my opinion, the hability of evaluate and set variables in a dynamic way. By dynamic, I mean that the variable name is constructed dynamically, or passed as a parameter, and ends up being in another variable (for example, a […]

Bucles en la terminal

Hace poco necesitaba yo borrar, en una estructura de directorios, todos los ficheros cuya extensión fuera .class. Estas tareas suelen ser un tedio, pero muy fáciles de solucionar si sabes un poco de shell scripting. El ejemplo es el siguiente: $ for i in `find . -name '*.class'` ; do echo "Borrando $i" ; rm […]

Any to mp3

Un script que convierte cualquier archivo (wav, wma, avi, etc) a mp3