Fish shell – using modules to import functions

May 19, 2014 at 19:59

I recently decided to give fish shell a try. I’ve always been reluctant to change my shell: bash has certainly its flaws, but it is widely spread. But lately I’m trying to go easier on embracing new things, since my natural approach is to be (extremely) skeptical about them (although […]

Bash – find directories of certain sizes

January 11, 2013 at 14:49

I often find myself trying to know which directories are consuming most of my persistent memory (I would say hard disk, but it isn’t a disk – and probably, even hard – anymore), and always get disappointed with myself for not being able to remember the way to do it […]

Bash – How to dynamically evaluate and set a variable

December 19, 2012 at 16:54

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 […]

Colorful svn diff

October 30, 2012 at 18:32

How to make svn diff colorful in a transparent way

Obtener las extensiones de fichero existentes en un directorio

January 12, 2010 at 19:56

Cómo obtener la extensión de un fichero, o todas las extensiones que existan a partir de un directorio en bash o sh.

Programmed shutdown: pequeño script para apagar la máquina

April 17, 2009 at 11:09

Después de buscar (no, mucho, eso si 😀 ) por Google y no encontrar algo que se adaptase a mis mínimas necesidades, me he hecho un pequeño script de apagado de la máquina para mi maravilloso PC en el salón (que no de salón 🙂 ) equipado con un GNU/Linux […]

Si la salida fuese un Excell, lo llamaríamos ingeniería del software

December 11, 2008 at 17:47

Lo que ha empezado como un simple conteo de ficheros para ver qué proyecto hacía que Eclipse fuese lento, ha terminado en todo un contador de líneas digno de aparecer en cualquier libro de ingeniería del software (nótese la cursiva, por favor 😕 ), si no fuera porque es un […]

Bucles en la terminal

September 22, 2006 at 10:07

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 […]