shell-scripts/set-title
2024-03-03 16:32:28 -06:00

6 lines
200 B
Bash
Executable file

#!/bin/sh
# 01 Song Title
for file in *.flac; do
title="$(echo "$file" | sed '$ s/.flac//' | sed '0,/[[:digit:]][[:digit:]]/s///' | sed '0,/\s/s///')"
metaflac --set-tag=Title="$title" "$file"
done