So i wanted to shorten some urls quickly and easily.
I went looking around for a script and came up with a hybrid of my findings.
Simply make a file wherever on your unix system, i called mine tinyurl.sh
Then dump this code in:
1
2
3
4
#!/bin/sh
curl -s http://tinyurl.com/create.php?url=$1 \
| sed -n ’s/.*\(http:\/\/tinyurl.com\/[a-z0-9][a-z0-9]*\).*/\1/p’ \
| uniq | pbcopy
Yep, Thats it. Next i [...]


