Skip to content

ch7ck/functioning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Trying to Function

Gist

Use at your own risk. These are functions that at some point or another are useful to me.

Basic Usage

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

image

Date Time Functions

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

image

Color Info

Get the color codes for your terminal.....Handy for using color in commands or changing PS1

image

TODO

  • Write More Todos!
  • Setup POSIX functions
  • Add some Unit tests (using python)
  • Add some CI

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages