BASH Useful Tools

From Indie IT Wiki
Revision as of 13:10, 3 April 2020 by imported>Plittlefield
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Pastebin

Pastebin.com and similar websites make it quick and easy to share snippets of code, data, or text.

There is a command line version for Ubuntu. Install it with...

sudo apt install pastebinit

Use it with...

pastebinit file.txt
cat file.txt | pastebinit
/my/program | pastebinit

Calculator

echo $[1+1]

or

scale=2; echo "11.45 + 7.95" | bc

Thanks to Basically Tech.

Weather

sudo aptitude install weather-util-data weather-util

Thanks to OMGUbuntu.