BASH Useful Tools
From Indie IT Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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
echo "scale=2; 2/3" | bc
Thanks to Basically Tech.
Rounding Numbers
echo "1.23456789 1.23456789" | awk '{printf "%s %.0f\n",$1,$2}'
Weather
sudo aptitude install weather-util-data weather-util
Thanks to OMGUbuntu.