"WordServices" adds this and much more to the Mac OS X Services Menu and it's free
http://www.devon-technologies.com/produ ... eeware.php
"This service provides 34 functions to convert, format or speak the currently selected text, to insert data or to show statistics of the selection within all Cocoa applications (for example TextEdit, Mail, Stickies, Notes, Fire, OmniWeb, ProjectBuilder or TeXShop) and Carbon applications supporting services.
Features: Reformat, Remove line endings/multiple spaces/quotes, Trim line beginnings/line endings/lines, Sort lines ascending/descending, Shift left/light, Initial caps of words/sentences, All caps & lowercase, Mac/Windows/Unix line endings, Rotate 13, Straight/Smart Quotes, Encode/Decode tabs, Insert date/date & time/time/contents of path, Speak native/german text, Statistics.
Version 2.5 features new commands for inserting time and date in long, verbose format, and comes with new keyboard shortcuts. Version 2.5.1 updates the French, Italian and Dutch localisations, is compiled using GCC 3.3 and therefore faster, and comes with a description about how to fix the Carbon services menu bug (empty services menu under certain circumstances). Version 2.5.2 of the Mac OS X Services menu plug-in comes with a revised French localisation and now sorts lines."