In a message dated: Wed, 17 Jul 2002 13:48:10 EDT
Bill Studley said:

>Erik Price wrote:
>
>> Hey, if you're going to say that, then you have to use this:
>>
>> perl -e 
>> 'for($c=1;$c<284;$c++){print"http://foo.foo.org/foo$c.file\n";}'>>somefile.txt
>
>I knew there was a one liner in there someplace :-D

There always is, but shouldn't we make it a litte more efficient?

  perl -e 'for $c (1..284) {print "http://foo.foo.org/foo${c}.file\n";}'>> file.txt

Or, better:

  perl -e 'map { print "http://foo.foo.org/foo$_\n"} 1...284' >> file.txt

:)
-- 

Seeya,
Paul
----
        It may look like I'm just sitting here doing nothing,
   but I'm really actively waiting for all my problems to go away.

         If you're not having fun, you're not doing it right!



*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************

Reply via email to