Commit 96e44b38 authored by Alex Segers's avatar Alex Segers

5. Generate Report

parent 419ff3df
#!/bin/bash
TIMESHEET_CSV="../input/timesheet.csv"
echo "Customer : Hours"
awk -F, '$7 == "Y" {
arr[$5] += $8
} END {
for(CUSTOMER in arr)
printf "%s : %.1f\n", CUSTOMER, arr[CUSTOMER]
}' < $TIMESHEET_CSV
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment