Closed bat999 closed 3 years ago
Kudos to Tahmid Rayat ;-)
#!/bin/bash # # # shorten # # January 31 2021. # # Usage:- # shorten <URL> # ## Inspired by ## https://github.com/htr-tech/shorturl # # printf " \e[0m\e[1;91m[\e[0m\e[1;97m~\e[0m\e[1;91m]\e[0m\e[1;93m Shortening Url...\e[0m\n" shorturl=$(curl -s http://tinyurl.com/api-create.php?url=$1) sleep 2 printf "\e[0m\n" printf " \e[0m\e[1;91m[\e[0m\e[1;97m~\e[0m\e[1;91m]\e[0m\e[1;93m Done !!\e[0m\n" printf "\e[0m\n" printf ' \e[0m\e[1;91m[\e[0m\e[1;97m~\e[0m\e[1;91m]\e[0m\e[1;92m Shortened Url :\e[0m\e[1;93m %s \n' ${shorturl:8} printf "\e[0m\n" sleep 2 printf "\e[0m\n" printf "\e[0m\n" exit 1 # # #
Welcome to Termux! Community forum: https://termux.com/community Gitter chat: https://gitter.im/termux/termux IRC channel: #termux on freenode Working with packages: * Search packages: pkg search <query> * Install a package: pkg install <package> * Upgrade packages: pkg upgrade Subscribing to additional repositories: * Root: pkg install root-repo * Unstable: pkg install unstable-repo * X11: pkg install x11-repo Report issues at https://termux.com/issues The Google Play version of the Termux app no longer receives updates. For more information, visit: https://wiki.termux.com/wiki/Termux_Google_Play ~ $ ./shorten.sh https://chromium.woolyss.com/ [~] Shortening Url... [~] Done !! [~] Shortened Url : tinyurl.com/yy45pp6n ~ $
cool 😱
Kudos to Tahmid Rayat ;-)