Terminal Tips: HTML via the command line

Robert Daeley over at MacDevCenter has an article up detailing HTML Tools on the Mac Command Line, which would seem to be a pretty good starting place for those of you who code HTML on a regular basis and would like to unleash some of the power of the UNIX-based underbelly of OS X and the Terminal.

I like the textutil command that can take any .txt file and automagically turn it into a properly coded webpage:


textutil -convert html foo.txt
 

This produces a file called foo.html in the same directory without mangling the original text file. Neat. 

Recommended