commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Turns regular quotes into curly quotes, also converts hyphens to dashes using a heuristic and outputs the result as UTF-8, suitable to copy/paste into wordprocessor.
requires: http://daringfireball.net/projects/smartypants/ (which does most of the work)
(I renamed smartypants.pl to smartypants before adding it to my $PATH)
Also requrires PHP with the multibyte module installed (its installed by default with PHP, but the sysadmin on one server I use disabled it... presumadly to increase performance or something).
There are 4 alternatives - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.