Tag Archives: script

Blog your status to a file using Bash

I wanted to take notes about what I’m currently doing at work, but I didn’t want to upload this info to Twitter or Facebook. I also wasn’t in the mood to put MySQL and Tomcat to work hard on my laptop. I just wanted something off-line and local for security. I wrote this bash script […]

Posted in Bash | Also tagged , | 2 Comments

Format and Indent XML in Ubuntu Linux

While playing with Castor, I used one of their tools to generate an XML file. The problem is that the XML file was one line. It was pretty hard to read with the text wrapping. Here’s how to turn ugly.xml into pretty.xml in Ubuntu Linux Install tidy: sudo apt-get install tidy Parse the ugly xml […]

Posted in XML | Also tagged , | 2 Comments