Skip to content

A simple bash script to shorten urls using the public api "is.gd".

Notifications You must be signed in to change notification settings

Flexdev45/Shorter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

Bash Shortener V0.2

Description: It's a simple bash script to short urls using the public api "is.gd".

Reason Why: I've made this script only to be executed on linux because sometimes we need a such a quick tool to short our urls and don't want to spend a lot of time creating an account on a "url shortener service".

What does it use:

  • Curl 8.0>higher
  • Bash 5.2>Higher

Where does it should work?

  • It should work on any linux system.
  • It had been tested in ubuntu 24.04 and ran perfectly.

What's new in the version 0.2 #

  • You can set a customised filename to save your shorten url.
  • Consequently, you now can choose whether to save or not your url.
  • There are more conditionals and logical structure, making the script slightly more stable.

Notes for the version 0.1 #

  • It must be executed with superuser privileges; otherwise, it will not open.
  • If you don't have curl in your system, it will download it automatically.
  • It saves your shortening URL in a text file.

How to install it?

  1. Run this in your bash.
# Run this in your terminal
git clone 'https://github.com/Flexdev45/Shorter.git';
cd 'Shorter';
sudo bash shorter.sh;

About

A simple bash script to shorten urls using the public api "is.gd".

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages