1
0
Fork 0
A simple bash script that generates a monthly printout calendar template to be used between an employer and employee
This repository has been archived on 2021-09-20. You can view files and clone it, but cannot push or open issues/pull-requests.
Go to file
Franco Masotti ccd2d1c5a1 Added deprecation warning. 2021-04-30 17:12:27 +02:00
LICENSE Added files. 2017-01-13 20:09:39 +01:00
README.md Added deprecation warning. 2021-04-30 17:12:27 +02:00
configrc Changed constants, quotations, variables. Fixed readme. 2020-01-12 18:24:15 +01:00
example.txt Changed constants, quotations, variables. Fixed readme. 2020-01-12 18:24:15 +01:00
monthly_attendace_paper.sh Added license notice. 2020-01-29 22:27:53 +01:00

README.md

monthly-attendance-paper

A simple bash script that generates a monthly printout calendar template to be used between an employer and employee.

Warning: THIS REPOSITORY IS DEPRECATED. HAVE A LOOK HERE:

Table of contents

Dependencies

Package name Version Required
GNU Bash 5.0.011(1) yes
Coreutils 8.31 yes
Gawk 5.0.1 yes
util-linux 2.34 yes
CUPS 2.3.0 no

Example

See example.txt for an example printout. Note that the example was made to test a leap year.

Configuration

Edit the ./configrc file based on your needs. Variable names are self-explanatory.

You can also edit the date formats in the following script functions:

get_full_string()
print_day()

Running

$ ./monthly_attendace_paper.sh ./configrc

Printing

$ ./monthly_attendace_paper.sh ./configrc | 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 ./configrc > printout.txt

might be different than:

$ ./monthly_attendace_paper.sh ./configrc

This script does not check any input nor output for errors. That's up to you.

License

CC0.