Skip to Content

WoW Insider is getting ready for BlizzCon!
AOL Tech

Filed under: Internet, Terminal Tips

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.
 

Reader Comments (Page 1 of 1)

Tip of the Day

Holding the Command key (aka the Apple key) and pressing Tab will cycle through your open applications. It's easier to Cmd-Tab if you are Copy (Cmd-C) and Pasting (Cmd-V) to and from various applications.


Follow us on Twitter!
TUAW [Cafepress]

Sponsored Links

Featured Galleries

DNC Macs
Macworld 2008 Keynote
Macworld 2008 Build-up
Google Earth for iPhone
Podcaster
AT&T Navigator Road Test
Bento for iPhone 1.0
Scrabble for iPhone
Tom Bihn Checkpoint Flyer Briefcase
Apple Vanity Plates
Apple booth Macworld 07
WorldVoice Radio
Quickoffice for iPhone 1.1.1
Daylite 3.9 Review
DiscPainter
Mariner Calc for iPhone
2009CupertinoBus
Crash Bandicoot Nitro Kart 3D
MLB.com At Bat 2009
Macworld Expo 2007 show floor
Apple Texas Hold 'Em

 

More Apple Analysis

AOL Radio TUAW on Stitcher