Skip to Content

Terminal Tips: HTML via the command line

textutil
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. 

Categories

Internet Terminal Tips

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...
 

Add a Comment

*0 / 3000 Character Maximum

3 Comments

Filter by:
Bob Bradley

Nice hint. I was not aware of this utility. I'll check out the other options as well.

November 29 2005 at 11:13 AM Report abuse rate up rate down Reply
Tom O'Neill

Man page says it was added in 10.4, sorry Mark.

November 28 2005 at 10:05 AM Report abuse rate up rate down Reply
Mark

can't get this to work in OS X.3.9 Could also be that i don't have admin rights... stupid I.T. and their stupid locking down of stupid computers :( (can you tell i'm bitter?)

November 28 2005 at 9:46 AM Report abuse rate up rate down Reply
Buy an ad here

Hot Apps on TUAW

Tweets

© 2012 AOL Inc. All Rights Reserved.