-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_notes.sh
More file actions
executable file
·44 lines (36 loc) · 1.01 KB
/
create_notes.sh
File metadata and controls
executable file
·44 lines (36 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
# Loop through all SONG directories
for song_dir in SONG */; do
if [[ -d "$song_dir" ]]; then
# Extract song number from directory name
song_num=$(echo "$song_dir" | grep -o '[0-9]\+')
# Create NOTES.TXT in BEN folder
mkdir -p "${song_dir}BEN"
cat > "${song_dir}BEN/NOTES.TXT" << EOF
Notes for BEN's version of SONG ${song_num}:
Date Created:
Last Modified:
Status:
Comments:
EOF
# Create NOTES.TXT in CONNOR folder
mkdir -p "${song_dir}CONNOR"
cat > "${song_dir}CONNOR/NOTES.TXT" << EOF
Notes for CONNOR's version of SONG ${song_num}:
Date Created:
Last Modified:
Status:
Comments:
EOF
# Create NOTES.TXT in FINAL folder
mkdir -p "${song_dir}FINAL ${song_num}"
cat > "${song_dir}FINAL ${song_num}/NOTES.TXT" << EOF
Notes for FINAL version of SONG ${song_num}:
Date Created:
Last Modified:
Status:
Comments:
EOF
fi
done
echo "NOTES.TXT files have been created in all BEN, CONNOR, and FINAL folders."