Bash


The GNU Bourne-Again SHell is the command language interpreter I have always used.

Here lay some of the tricks, scripts or libraries which I have been either collecting and coding through the years. Most are not here yet, but one day I’ll take the time to upload more stuff.

Some files depend on a library of mine, you’ll find in one of the posts.

Fighting root

Sunday, December 3rd, 2006

The sysadmin at my former employer had the bad habit of uploading files as root to directories we all used. It was a real PITA, so I hacked this script to fix the perms, without having to be root. No magic: the directory has to be writable.

Read the rest of this entry »

leeme.sh

Sunday, December 3rd, 2006

Desde hace años, tengo como costumbre describir todo lo que hago en ficheritos LEEME repartidos por todo el disco duro. Aquí está el script que uso para crearlos y editarlos. Puedes ver el código si pasas a la siguiente página…

Read the rest of this entry »

Mail list statistics

Thursday, June 15th, 2006

An ancient script which I used to compute some stats on who posted how much in mailing lists. Get it here, browse the files and examples, or see the code… (sorry comments in spanish)

setperms.sh

Sunday, August 28th, 2005

Quickly fix permissions under one directory. Get it. Or see it…

Read the rest of this entry »

Helper functions

Friday, July 29th, 2005

Some functions providing nice output formatting and easier user input parsing used by some of my scripts. Get them. Or view them…

Read the rest of this entry »

replace.sh

Friday, May 13th, 2005

Poor man’s replace in files. Get it. Or see it…

Read the rest of this entry »