A simple bash script that generates a monthly printout calendar template to be used between an employer and employee
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
monthly-attendance-paper/README.md

74 lines
1.5 KiB

6 years ago
# monthly-attendance-paper
6 years ago
A simple bash script that generates a monthly printout calendar template to be
used between an employer and employee.
## Dependencies
All of them should be already installed in your system:
- [GNU Bash](http://www.gnu.org/software/bash/bash.html)
- [Coreutils](https://www.gnu.org/software/coreutils/)
- [Gawk](http://www.gnu.org/software/gawk/)
- [util-linux](https://www.kernel.org/pub/linux/utils/util-linux/)
Optionally, to print the template:
- [CUPS](http://www.cups.org/)
or whatever printing system is able to print from the
standard input.
## Example
See [example.txt](example.txt) for an example printout. Note
that the example was made to test a leap year.
6 years ago
## Configuration
Edit `configrc` based on your needs.
variable names are self-explanatory.
Important variables are:
this_month
this_year
employer
employee
as well as the days of the week, which you can translate in
your language.
You can also edit the date formats in the following script functions:
6 years ago
get_full_string()
print_day()
## Running
$ ./monthly_attendace_paper.sh
## Printing
$ ./monthly_attendace_paper.sh | lpr
## Warning
This script heavily depends on tabs for formatting. What you see
in a printout may be different to what you see on the screen;
what you see on an editor after executing:
$ ./monthly_attendace_paper.sh > printout.txt
might be different than:
$ ./monthly_attendace_paper.sh
6 years ago
This script does not check any input nor output for errors.
That's up to you.
## License
CC0.