tinyurl bash script

January 28th, 2009  |  Published in Mac  |  3 Comments

Here is a simple bash script I wrote based on [Wesley Tanaka's script](http://wtanaka.com/node/7750), which in turn was based on code from [Firefox TinyUrl Creator](https://addons.mozilla.org/en-US/firefox/addon/126).

It creates a [tinyurl](http://www.tinyurl.com), echos the result, then puts it on the clipboard.

Responses

  1. John Turek says:

    April 8th, 2009 at 3:33 pm (#)

    Greetings, I wanted to add that pbcopy is an OSX Utility, so here is an alternative to pbcopy for linux users

    alias pbcopy=’xclip -selection clipboard’

  2. Robert says:

    May 27th, 2009 at 4:10 am (#)

    With the advent of the TinyURL api, the wget command has been reduced to…
    wget -O – http://tinyurl.com/api-create.php?url=

  3. Paul says:

    May 27th, 2009 at 10:45 am (#)

    Robert, thanks! I will update it.

Leave a Response