10 lines
233 B
Text
10 lines
233 B
Text
|
#!/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
|
||
|
|