9 lines
233 B
Bash
Executable file
9 lines
233 B
Bash
Executable file
#!/bin/sh
|
|
# 01 Song Title
|
|
nots="$(ls *.flac | wc -l)" # Number of tracks
|
|
for file in *.flac; do
|
|
not=$(echo $file | awk '{print $1}') # Number of track
|
|
track="$not/$nots" # i.e. 01/14
|
|
metaflac --set-tag=Track=$track "$file"
|
|
done
|
|
|