Schwartzian transform in shell and vim

A few days ago I had to create list of email addresses sorted on the domainname. All addresses with the same name should clump together. Being a Perl programmer, I quickly wanted to write a Perl script to sort this list of data. Then I tought, why not use Vim to look at the intermediate steps and do it with filtering. The following is the result. :%!perl -pe 'm/\@([-\w]+)\./; $_="$1\#$_";' :%!...

January 26, 2010

I don't know why I didn't make these aliases before

A few days ago I created two new aliases for places I connect to with ssh. Both locations have a three character alias now. To use the aliases I created a new file called ~/.aliases. This file contains all the aliases I use. This file should be sourced in the ~/.bashrc file with the following command. source ~/.aliases Then add the following line to the ~/.aliases file. alias realias='$EDITOR ~/....

November 10, 2009