There are many link shortening services exist. YouTube® for example use own shortening link service. For other resources I use only Google® service for this.
There are plugins for browsers to do that. 'Firefox' has plugin for it, 'Safari' has too. But any plugin can lead to security risk. That is why it it is not a good idea to use it.
As many knows I'm a terminal geek, so I'll show you how say to Google® what I want by terminal preinstalled program Curl. This magick program is very handy for many tasks.
This command send the string to Google® server and analize reply from it:
$ curl -s -d'&url=http://dimig.blogspot.com' http://goo.gl/api/url | egrep -o 'http://goo.gl/[^"]*'
I wrote a little bash script which could help automate the process. The screenshot of my script below. Have a good link shortening. :)
No comments:
Post a Comment