Thursday, April 14, 2011

More useful Unix one line scripts

Goal: Take the 9th column of the document and count all of the lines that  have a semicolon.
cat document.txt | cut -f9 | egrep ';' | wc -l

Goal: count the number of columns in a text.
head -1 document.txt | awk '{print NF}'

Monday, April 11, 2011

Best Latex Editor On Ubuntu

I have been looking far and wide for the best Latex Editor on Ubuntu and little did I know, it was living right under my nose.

Gedit with the latex plugin is simply wonderful!