Skip to content

Instantly share code, notes, and snippets.

@marcelblijleven
Last active December 24, 2019 10:56
Show Gist options
  • Save marcelblijleven/84060a8440a2ddd45f4dcfb9c7fe26c3 to your computer and use it in GitHub Desktop.
Save marcelblijleven/84060a8440a2ddd45f4dcfb9c7fe26c3 to your computer and use it in GitHub Desktop.
re-uploaded my script to set up hour registration directory
#!/bin/bash
declare -a months=(
"01_Januari"
"02_Februari"
"03_Maart"
"04_April"
"05_Mei"
"06_Juni"
"07_Juli"
"08_Augustus"
"09_September"
"10_Oktober"
"11_November"
"12_December"
)
for month in "${months[@]}"
do
echo "Creating directory $month"
mkdir -p "$month"
cp "./Urensheets_template.xlsx" "./$month/Urensheets_${month:3}.xlsx"
done
@marcelblijleven
Copy link
Author

2 years old but still works for me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment