Skip to content

Instantly share code, notes, and snippets.

@IT-Berater
Last active September 5, 2018 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IT-Berater/f25448a6f5194f9278794cda1a43c3b3 to your computer and use it in GitHub Desktop.
Save IT-Berater/f25448a6f5194f9278794cda1a43c3b3 to your computer and use it in GitHub Desktop.
Script zum automatischen taggen von mp3 Dateien und anschließenden zippen
#!/bin/bash
#
# Thomas Wenzlaff
#
# Das Script tag-mp3-files.sh zum Taggen von mp3 Dateien im Verzeichnis.
#
#
VERZEICHNIS="./mp3-0-100-dezimal"
cd $VERZEICHNIS || exit
echo "Tagge alle ./mp3/*.mp3 Dateien im Verzeichnis $VERZEICHNIS"
for i in *.mp3 ; do
dateiname=$(echo "${i}" | sed 's/.mp3$//')
echo "${i}"
id3v2 -t "Ansage der Zahl $dateiname" -T "1" -A "wenzlaff.de" -a "Thomas Wenzlaff" -y "2018" -c "$dateiname" -g 39 "${i}"
done
cd ..
zip -r mp3-0-100-dezimal.zip $VERZEICHNIS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment