A simple storage unit converter written in bash.
A simple command line tool written in bash to convert storage units into other storage units.
NAME
con - convert storage units into other storage units
SYNOPSIS
con [number] [unit #1] [unit #2]
[number] - number to convert
[unit #1] - the original unit
[unit #2] - the unit to convert to
UNITS
b - bits
B - bytes
Gb - Gigabit
GiB - Gibibyte
GB - Gigabyte
Kb - Kilobit
KB - Kilobyte
Mb - Megabit
MB - Megabyte
Pb - Petabit
PB - Petabyte
Tb - Terabit
TB - Terabyte
EXAMPLES
con 5 Mb b
Converts 5 Megabits (Mb) to bits (b)
con 1.5 TB GB
Converts 1.5 Terabytes (TB) to Gigabytes (GB)
con 500 Gb KB
Converts 500 Gigabits (Gb) to Kilobytes (KB)
con h
Brings up the help menu
-
Clone this repo
git clone https://github.com/AlanConstantino/bash-storage-unit-converter.git
-
Give the script executable permissions.
chmod +x con
-
Place
con
script in the/usr/bin/
repository.sudo cp con /usr/bin/
sudo rm /usr/bin/con