ProfBunny
18-10-2008, 10:52
Hi Leute,
um bei meinen mp3 cds fürs auto den überlbick zu behalten, hab ich mir ein kleines script gebastelt
#!/bin/sh
set -x
echo -n "Title of the CD? "
read CDTITLE
/bin/mount /cdrom/ && /bin/ls -1 /cdrom > $CDTITLE.txt && /bin/umount /cdrom/ && eject
#ls -1 /home/profbunny/mp3/ > mp3dir.lst
#cat *.txt |sort -d |uniq > cd.lst
#echo "verwendete Alben filtern"
#comm -3 mp3dir.lst cd.lst |sort -d > rest.lst
das klappt auch, das erstellt mir sozusagen
profbunny@sysiphus:~/source/mp3daten$ l
insgesamt 36K
-rw-r--r-- 1 profbunny profbunny 289 18. Okt 11:28 CD1.txt
-rw-r--r-- 1 profbunny profbunny 256 18. Okt 11:28 CD2.txt
-rw-r--r-- 1 profbunny profbunny 244 18. Okt 11:29 CD3.txt
-rw-r--r-- 1 profbunny profbunny 219 18. Okt 11:30 CD4.txt
-rw-r--r-- 1 profbunny profbunny 336 18. Okt 11:31 CD5.txt
-rw-r--r-- 1 profbunny profbunny 317 18. Okt 11:32 CD6.txt
-rw-r--r-- 1 profbunny profbunny 239 18. Okt 11:32 CD7.txt
-rw-r--r-- 1 profbunny profbunny 149 18. Okt 11:33 CD8.txt
jetzt würde ich diese cds am liebsten untereinander vergleichen, um festzustellen ob ich nicht auf mehreren cds das selbe album habe. jemand ne idee wie ich das am besten prüfe?
danke
um bei meinen mp3 cds fürs auto den überlbick zu behalten, hab ich mir ein kleines script gebastelt
#!/bin/sh
set -x
echo -n "Title of the CD? "
read CDTITLE
/bin/mount /cdrom/ && /bin/ls -1 /cdrom > $CDTITLE.txt && /bin/umount /cdrom/ && eject
#ls -1 /home/profbunny/mp3/ > mp3dir.lst
#cat *.txt |sort -d |uniq > cd.lst
#echo "verwendete Alben filtern"
#comm -3 mp3dir.lst cd.lst |sort -d > rest.lst
das klappt auch, das erstellt mir sozusagen
profbunny@sysiphus:~/source/mp3daten$ l
insgesamt 36K
-rw-r--r-- 1 profbunny profbunny 289 18. Okt 11:28 CD1.txt
-rw-r--r-- 1 profbunny profbunny 256 18. Okt 11:28 CD2.txt
-rw-r--r-- 1 profbunny profbunny 244 18. Okt 11:29 CD3.txt
-rw-r--r-- 1 profbunny profbunny 219 18. Okt 11:30 CD4.txt
-rw-r--r-- 1 profbunny profbunny 336 18. Okt 11:31 CD5.txt
-rw-r--r-- 1 profbunny profbunny 317 18. Okt 11:32 CD6.txt
-rw-r--r-- 1 profbunny profbunny 239 18. Okt 11:32 CD7.txt
-rw-r--r-- 1 profbunny profbunny 149 18. Okt 11:33 CD8.txt
jetzt würde ich diese cds am liebsten untereinander vergleichen, um festzustellen ob ich nicht auf mehreren cds das selbe album habe. jemand ne idee wie ich das am besten prüfe?
danke