One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| # ============================================================================================ # | |
| #: Title : sdb # | |
| #: Sypnosis : sdb [OPTIONS]... [QUERY]... # | |
| #: Date Created : Sat 25 Nov 2017 10:10:47 AM +08 / Sat Nov 25 02:10:47 UTC 2017 # | |
| #: Last Edit : Mon 08 Jan 2018 10:03:37 AM +08 / Mon Jan 8 02:03:37 UTC 2018 # | |
| #: License : MIT # | |
| #: Version : 1.4.4 # | |
| #: Maintainer : Jason V. Ferrer '<jetchisel@opensuse.org>' # | |
| #: Description : log bash_history in a database (A fork of dbhist.sh from Dennis Gladkikh) # | |
| #: Options : [abdehlmnprsuvwzEHS] # |
Due to bash changing its license to GPLv3 in 4.0, Apple will no longer be shipping mac operating systems with updated versions of bash (3.2 is the highest version they will ship). The following steps can be used to successfully update your bash to the latest release (at this time, 4.4.12). This has been tested on the following releases:
| #!/bin/bash | |
| #Simplest calculator two dates difference. By default in days | |
| # Usage: | |
| # ./datediff.sh first_date second_date [-(s|m|h|d) | --(seconds|minutes|hours|days)] | |
| first_date=$(date -d "$1" "+%s") | |
| second_date=$(date -d "$2" "+%s") | |
| case "$3" in |