Article View: news.software.readers
Article #173016[slrn] score file feeder
From: Faux_Pseudo
Date: Fri, 09 Sep 2005 04:13
Date: Fri, 09 Sep 2005 04:13
45 lines
2719 bytes
2719 bytes
I hit the binaries groups up once in a while for music. This little
bash script goes through my music dir and creates a slrn style score entery for
each band and then filters out records you already have.
Creating a list that looks something like this:
[*binaries*] [music]
Score: 5000
Subject: a.*perfect.*circle
~Subject: emotive
~Subject: mer.*de.*noms
Subject: aerosmith
~Subject: pandora's.*box;.*disc.*1
~Subject: pandora's.*box;.*disc.*2
~Subject: pandora's.*box.*.*3cd's.*.*.*cd3.*.*19
Subject: alanis.*morissete
~Subject: so.*called.*chaos
it isn't perfect. For example if you have "legendary pink dots, the"
then you will need to manually change the "the". Because I have
folders named "unknown" and filter those out it will strip out things
like "superunknown". And things like "motley crue" with the non-ascii
letters it will spit those out too.
But it will get you something to work with.
Thought I would share this with the group.
echo '[*binaries*] [music]'
echo ' Score: 5000'
for f in $(ls |egrep -v "unknown|sort" ) ; do
echo " Subject: $(echo $f | sed -e 's/,//' -e 's/[-_]/.*/g'
-e 's;/;;')" ;
for d in $(ls $f |egrep -v "unknown|sort" | grep / ) ; do
echo " ~Subject: $(echo $d | sed -e 's/,//' -e \
's/[-_]/.*/g' -e 's;/;;' -e "s;\';\.\*;g" )"
done
done | grep -v unknown | sed 's/\.\*$//g' | sed 's/\.\*$//g'
HTH
--
.-')) fauxascii.com ('-. | It's a damn poor mind that
' ..- .:" ) ( ":. -.. ' | can only think of one way to
((,,_;'.;' UIN=66618055 ';. ';_,,)) | spell a word.
((_.YIM=Faux_Pseudo :._)) | - Andrew Jackson
Technical Details
Message-ID:
<4_7Ue.10804$dm.6343@lakeread03>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!cox.net!news-xfer.cox.net!p01!lakeread03.POSTED!53ab2750!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <4_7Ue.10804$dm.6343@lakeread03> Subject: [slrn] score file feeder Date: Fri, 09 Sep 2005 04:13:52 GMT From: Faux_Pseudo <Faux.Pseudo@gmail.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!cox.net!news-xfer.cox.net!p01!lakeread03.POSTED!53ab2750!not-for-mail Newsgroups: news.software.readers Reply-To: f0sud0@gmail.com X-Why: Are you reading this User-Agent: slrn/0.9.8.0 (Linux) Lines: 45 NNTP-Posting-Host: 24.254.217.242 X-Complaints-To: abuse@cox.net X-Trace: lakeread03 1126239232 24.254.217.242 (Fri, 09 Sep 2005 00:13:52 EDT) NNTP-Posting-Date: Fri, 09 Sep 2005 00:13:52 EDT Organization: Cox Communications