MLUG: [MLUG] Re: allmusic trick for storing CD info
[MLUG] Re: allmusic trick for storing CD info
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Sun, 15 Apr 2007, Mike Miller wrote:

The script is this oneliner and I call it "review"

wget -O - "$1" | perl -pe 's#<head>#<head>\n<base> href="http://www.allmusic.com/"; />#' > review.html

You just do this in the appropriate directory (or move review.html there later):

review 'http://www.allmusic.com/cg/amg.dll?p=amg&sql=10:kbfqxqugld0e'


So I'm doing that and having trouble of keeping track of the ones I haven't done yet. In other words, the problem is to list the directories that do *not* contain a file called review.html. Here's how I do it:

\ls -1d * */review.html | gawk -F'/' '{print $1}' | uniq -c | egrep '^ {6}1 ' | cut -c 9- | less -Sr

I think that will always work. I do this kind of thing a lot -- string together a few GNU/UNIX commands to do something kinda tricky.

Mike

_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members