Hallo, Am Sat, 04 Jan 2014, ?l ??gn?r schrieb:
Am Sa, 04 Jan 2014 11:50:59 CET schrieb ?l ??gn?r:
# ungetestet und nur als Idee find "$MP3PATH" -type f -iname '*.mp3' while read -r MP3FILE; do ... #zB AUSGABE=`mediainfo "$MP3FILE" | grep -i lame` if test -z "$AUSGABE", then exiftool -q -q -s -s -s -Album "$MP3FILE" > songs.txt fi done cat songs.txt | sort -u > cdlist.txt
Viel Spaß beim Suchen der entsprechenden CDs ;-) Das sehe ich als das Problem.
Und schon sehe ich, dass sich da (mindestens) 1 Fehler eingeschlichen
Grummel, ich muss dringend weg, da sind neben > noch Probleme dabei, sorry. Vor while gehört ein | und statt dem , muss vor then ein ;
Nochmals sorry. Ich hoffe ich habe jetzt alle Probleme auf die Schnelle gesehen. Das kommt davon, wenn man glaubt, so was schnell nebenbei tippen zu können.
==== UNGETESTET! ==== find "$MP3PATH" -type f -iname '*.mp3' -print | while read -r MP3FILE; do #zB exiftool -q -q -s -s -s -Encoder -Album "$MP3FILE" | \ awk 'BEGIN{RS="";FS="\n";ORS="\n";} $1 ~/LAME/{print $2;}' ;\ done | sort -u > lame_encoded_albums.txt ==== Oder mit Pfad: ==== find . -type f -iname '*.mp3' -print | while read -r MP3FILE; do exiftool -q -q -s -s -s -Encoder -Album "$MP3FILE" | \ awk -vD="$(dirname $MP3FILE)" ' BEGIN { RS=""; FS="\n"; } $1 ~/LAME/ { printf("%s\t%s\n", $2, D); }'; done | sort -u ==== HTH, -dnh -- <[TN]FBMachine> i got kicked out of barnes and noble once for moving all the bibles into the fiction section -- http://www.bash.org/?406373 -- Um die Liste abzubestellen, schicken Sie eine Mail an: opensuse-de+unsubscribe@opensuse.org Um den Listen Administrator zu erreichen, schicken Sie eine Mail an: opensuse-de+owner@opensuse.org