Last active
September 5, 2018 17:35
-
-
Save IT-Berater/f25448a6f5194f9278794cda1a43c3b3 to your computer and use it in GitHub Desktop.
Script zum automatischen taggen von mp3 Dateien und anschließenden zippen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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