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.
Share
Categories
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
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 Permalink 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 Permalink 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 Permalink rate up rate down ReplyHot Apps on TUAW
Deals of the Day
more deals- Altec Lansing Octiv Duo iDock for $48 + free shipping
- Used Apple iMac 17" Core 2 Duo 1.83GHz for $430 + $28 s&h
- Lounge Deluxe Stand for iPhone / iPod touch for $28 + $8 s&h
- Brookstone Surround-Sound Earbuds for $14 + $7 s&h
- Refurbished Skullcandy Tokidoki Smokin' Buds Mic'd Headset for $5 + $2 s&h
- Stitchway Backup Battery for iPod / iPhone for $5 + free shipping
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



3 Comments