https://github.com/rjz/bash-boilerplate
A starting point for command-line scripting
https://github.com/rjz/bash-boilerplate
bash boilerplate cron shell
Last synced: about 2 months ago
JSON representation
A starting point for command-line scripting
- Host: GitHub
- URL: https://github.com/rjz/bash-boilerplate
- Owner: rjz
- Created: 2015-03-08T16:20:36.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-02-21T04:20:25.000Z (over 8 years ago)
- Last Synced: 2025-02-04T17:29:04.863Z (over 1 year ago)
- Topics: bash, boilerplate, cron, shell
- Language: Shell
- Size: 10.7 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bash Boilerplate
Because as long as we're scripting [bash][bash], we might as well start from
somewhere.
[](https://travis-ci.org/rjz/bash-boilerplate)
### cli.sh
Boilerplate for command-line scripts--structure, environment, and facilities for
logging and command line parsing.
```ShellSession
$ ./cli.sh
./cli.sh greet|dismiss name
$ ./cli.sh greet McCoy
[2015-03-08T09:17:28-0700] - So then I says, 'Top o' the morning to ye, McCoy!'
$ ./cli.sh fail hard
[2015-03-08T09:16:09-0700] - FATAL: 'I don't feel so well....'
```
### cron.sh
Boilerplate for scheduled cron tasks--logging, elapsed time, and process locking
### Utilities
Plus:
- Eight beautiful colors in `colors.sh` for prettying up your scripts
- And! A handful of useful utility functions in `utilities.sh`
## License
WTFPL
[bash]: https://www.gnu.org/software/bash/