Lieber Besucher, herzlich willkommen bei: Ubuntu-Forum & Kubuntu-Forum | www.Ubuntu-Forum.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »otto1klein« (22.06.2009, 09:42)
Benutzerinformationen überspringen
User
Registrierungsdatum: 10.03.2005
Derivat: Ubuntu
Architektur: 64-Bit PC
Desktop: GNOME 3.0
Andere Betriebssysteme: debian
Quellcode |
|
1 |
apt-cache search "(renamer|mmv\ |^id3v2)" |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 |
~$ apt-cache show exfalso|egrep -A9 Description\: Description: audio tag editor for GTK+ Ex Falso displays and edits audio metadata tags. Supported formats include MP3, Ogg Vorbis, FLAC, Musepack (MPC), WavPack, and MOD/XM/IT. . Notable features include: * Freeform tag editing for most supported formats, including ID3v2 * Multiple values for tag keys * Flexible rename-by-tags and tag-by-filename patterns * Extensible using simple Python-based plugins * Edit multiple files in several formats at once |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »floogy« (20.06.2009, 14:18)
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »otto1klein« (20.06.2009, 20:01)
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
find Musik/ *.mp3 > /tmp/mp3.txt #Finde alle mp3 Dateien im Ordner Musik mkdir $HOME/Desktop/Musik #In diesem Ordner werden alle Dateien kopiert cat /tmp/mp3.txt | while read line #Gefundene Dateien werden Zeilenweise von /tmp/mp3.txt eingelesen do slash=`echo -n "$line" | sed -e 's/[^/]//g' | wc -m` #Wie oft kommt der Slash in $line vor if [ $slash -eq 3 ] then #/Künstler/Album/Track-Titel.mp3 to Künstler Album Track-Titel album=`echo $line |cut -d / -f3` track=`echo $line | cut -d / -f4` artist=`echo $line | cut -d / -f2` #das "d" steht für delimiter und gibt dir dann das jeweilige Feld an cp $line $HOME/Desktop/Musik/"${artist} ${album} ${track}" #kopiert die Datei in den Ordner $HOME/Desktop/Musik/ elif [ $slash -eq 4 ] then #/Soundtrack/Künstler/Album/Track-Titel to Soundtrack Künstler Album Track-Titel track=`echo $line | cut -d / -f5` artist=`echo $line | cut -d / -f3` album=`echo $line | cut -d / -f4` soundtrack=`echo $line | cut -d / -f2` cp $line $HOME/Desktop/Musik/"${soundtrack} ${artist} ${album} ${track}" fi done |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Frosti« (20.06.2009, 20:57)
Benutzerinformationen überspringen
User
Registrierungsdatum: 01.08.2005
Derivat: Ubuntu
Architektur: 64-Bit PC
Andere Betriebssysteme: debian lenny, arch linux,
Quellcode |
|
1 |
find Musik/ *.mp3 > /tmp/mp3.txt |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
if [ $slash -eq 2 ] then #/Künstler/Track-Titel.mp3 to Künstler Track-Titel track=`echo $line | cut -d / -f3` artist=`echo $line | cut -d / -f2` cp $line $HOME/1/tmp/"${artist} ${track}" elif [ $slash -eq 3 ] then #/Künstler/Album/Track-Titel.mp3 to Künstler Album Track-Titel album=`echo $line |cut -d / -f3` track=`echo $line | cut -d / -f4` artist=`echo $line | cut -d / -f2` cp $line $HOME/1/tmp/"${artist} ${album} ${track}" elif [ $slash -eq 4 ] then #/Soundtrack/Künstler/Album/Track-Titel to Soundtrack Künstler Album Track-Titel track=`echo $line | cut -d / -f5` artist=`echo $line | cut -d / -f3` album=`echo $line | cut -d / -f4` soundtrack=`echo $line | cut -d / -f2` cp $line $HOME/1/tmp/"${soundtrack} ${artist} ${album} ${track}" |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »otto1klein« (20.06.2009, 23:11)
Benutzerinformationen überspringen
User
Registrierungsdatum: 01.08.2005
Derivat: Ubuntu
Architektur: 64-Bit PC
Andere Betriebssysteme: debian lenny, arch linux,
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »otto1klein« (21.06.2009, 10:08)
Quellcode |
|
1 |
find $HOME/Musik *.mp3 |
Quellcode |
|
1 2 3 4 |
artist="artist 123" album="album 123" touch Desktop/test.txt cp Desktop/test.txt Desktop/"${artist} ${album}" |
Quellcode |
|
1 |
find $HOME/Musik *.mp3 |
Quellcode |
|
1 |
find: "*.mp3": No such file or directory |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
cd $HOME find Musik -name '*.mp3' > /tmp/mp3.txt cat /tmp/mp3.txt | while read line do slash=`echo -n "$line" | sed -e 's/[^/]//g' | wc -m` case $slash in 2 ) #/Künstler/Track-Titel.mp3 to Künstler Track-Titel track=`echo $line | cut -d / -f3` artist=`echo $line | cut -d / -f2` mv "${line}" $HOME/Musik/"${artist} ${track}";; 3 ) #/Künstler/Album/Track-Titel.mp3 to Künstler Album Track-Titel track=`echo $line | cut -d / -f4` album=`echo $line |cut -d / -f3` artist=`echo $line | cut -d / -f2` mv "${line}" $HOME/Musik/"${artist} ${album} ${track}";; 4 ) #/Soundtrack/Künstler/Album/Track-Titel to Soundtrack Künstler Album Track-Titel track=`echo $line | cut -d / -f5` album=`echo $line | cut -d / -f4` artist=`echo $line | cut -d / -f3` soundtrack=`echo $line | cut -d / -f2` mv "${line}" $HOME/Musik/"${soundtrack} ${artist} ${album} ${track}";; esac done |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »otto1klein« (22.06.2009, 09:41)
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »otto1klein« (22.06.2009, 11:30)
Sponsorenwerbung: |
Hardware, Computer, PCs, Notebooks & Laptops mit Linux |
Forensoftware: Burning Board®, entwickelt von WoltLab® GmbH
Individuelle Notebooks Laptops - Individuelle Computer PCs - Linux Notebooks & Computers
Lastminute - Ubuntu Linux - Abmahnung - Geek und Nerd Shirt Shop
T-Shirts - sanierung wien