Use at your own risk. These are functions that at some point or another are useful to me.
Load the functions by using either a dot .
or the source
command. More info on bash's source command here
username@host:~$ source bashfunctions.sh
The date command can be used with +%s (date +%s
to get Epoch Time
The seconds since the epoch can then be given to the epochconvert
function:
username@host:~$ epochconvert 1579514915
Get the color codes for your terminal.....Handy for using color in commands or changing PS1
- Write More Todos!
- Setup POSIX functions
- Add some Unit tests (using python)
- Add some CI