MLUG: Re: [MLUG] a little fun thing...
Re: [MLUG] a little fun thing...
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 7/6/05, Mike Miller <EMAIL:PROTECTED> wrote:
> I want to be accomodating anyway, so I'll share a perl script that I found
> a few years ago.  I call it "perlseq" on my system, but the authors called
> it "seq".  It is only 52 lines and less than 1 KB and it is attached to
> this message.  It can do both numbers and letters, while ordinary 'seq'
> does only numbers.  Ah, nice ... I just found it on the 'net here:
> 
> http://alumnus.caltech.edu/~copeland/work/lottery.html
> 
> Once you get that running, you can do this...
> 
> perlseq 10000000 | perl -pe 's/\n/\r/'
> 
> ...or this:
> 
> perlseq 100 | perl -pe 's/\n/\r/' | less
> 
> What fun!  ;-)
> 

Or just stick with the Python version:
python -c 'for x in range(100): print x+1,"\r",'

Regards,
Mark
EMAIL:PROTECTED
-- 
You think that it is a secret, but it never has been one.
  - fortune cookie

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