|
6 years ago | |
---|---|---|
LICENSE | 6 years ago | |
README.md | 6 years ago | |
configrc | 6 years ago | |
example.txt | 6 years ago | |
monthly_attendace_paper.sh | 6 years ago |
README.md
monthly-attendance-paper
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:
Optionally, to print the template:
or whatever printing system is able to print from the standard input.
Example
See example.txt for an example printout. Note that the example was made to test a leap year.
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:
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
This script does not check any input nor output for errors. That's up to you.
License
CC0.