LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 01-07-2004, 02:14 AM   #1
LogicG8
Member
 
Registered: Jun 2003
Location: Long Island, NY
Distribution: Gentoo Unstable (what a misnomer)
Posts: 380

Rep: Reputation: 30
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A (Very late) Introduction ilikejam LinuxQuestions.org Member Intro 1 07-22-2004 11:01 AM
New user....is it too late? yesfan Linux - Newbie 7 10-16-2003 01:14 PM
Too late to partition again? Micro420 Linux - Hardware 6 09-17-2003 07:59 PM
April ramblings CragStar Linux From Scratch 5 04-24-2002 08:25 PM
is to late? spooge Linux - Software 4 03-07-2002 04:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 11:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration