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.
frnmst/Franco Masotti 2acdf90d6d Minor fixes. Added example. Updated readme. 6 years ago
LICENSE Added files. 6 years ago
README.md Minor fixes. Added example. Updated readme. 6 years ago
configrc Added files. 6 years ago
example.txt Minor fixes. Added example. Updated readme. 6 years ago
monthly_attendace_paper.sh Minor fixes. Added example. Updated readme. 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.