LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxQuestions.org Member Success Stories (https://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/)
-   -   Late night ramblings... (https://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/late-night-ramblings-132303/)

LogicG8 01-07-2004 02:14 AM

Late night ramblings...
 
Scripting saved me so much time I thought I'd waste some of it
while my script is still running. I needed to extract file names
and build URLs so I didn't have to spend forever Clicking and D/Ling
So I spent a few minutes and crafted this script:

Code:

#!/bin/sh

for each in `ls *.html`; do
        fontlist=`html2text $each | grep TTF | cut -f2 -d: | cut -f2 -d" "`
        for font in `echo $fontlist`; do
                letter=`cut -b1 | tr [:upper:] [:lower:]`
                wget http://216.127.92.67/fonts/18791905/$letter/$font
        done
done

Now instead of going through 5 different stupid pages to d/l each
font out of over 6500 fonts I just have to sit back and relax.


All times are GMT -5. The time now is 05:50 AM.