Help Me Automatically Shorten Status Updates for Facebook/Twitter Updates ...
July 26, 2010 8:37 AM Subscribe
I'm seeking to write a shell script (probably using sed) that will be given some text and will abbreviate it for me. I've no need to reinvent the wheel, if such a shell script already exists. More inside.
posted by WCityMike to Computers & Internet (6 answers total)
I'm a wordy sort (although I've improved), and so it's easy for me when writing a Facebook status update to go far over the 420-character limit -- God help me if I have to write a tweet. As with anything I find myself routinely repeating time after time, it occurred to me the other day that a shell script should be able to make the kind of shortenings I put my words through automatically. I can pipe in the clipboard's contents into the shell script using pbpaste
, and once changed put it back in there using pbcopy
What I'm seeking from you are (a) ideas for shortenings I can apply within the script -- but, ideally, things that don't wind up with it looking too incomprehensibly l33t-awful; (b) any little "caches of abbreviations" one might find within the source code of websites, programs, etc. with a similar purpose; and/or (c) if such a shell script already exists, I'd appreciate linkage -- as I say above, no need to reinvent the wheel.