lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LYNX-DEV Re: treelynx


From: David Combs
Subject: LYNX-DEV Re: treelynx
Date: Wed, 30 Apr 1997 17:19:44 -0700


> From address@hidden Tue Apr 29 13:38:26 1997
> Date: Tue, 29 Apr 1997 15:37:11 -0500 (EST)
> From: Giampaolo Minetti <address@hidden>
> To: address@hidden, address@hidden
> Subject: treelynx
> 
> I have found the treelynx feature of lynx very useful. I have a question
> you can probably answer: the files downloaded with treelink are given 
> names with the following format, as you probably know:
> 
> 
> lnk00000000.dat, lnk00000001.dat... and so on.
> 
> Then I cannot download these files on my PC which still runs under windows 3
> unless I rename all the "long-named" files, manually and one at a time in 
> my unix environment.
> Is there a way to rename automatically and with progressive numbers the 
> files?
> Thank you very muchin advance for your help
> 
> Giampaolo Minetti
>

here is my stupid way:

get all the names into a file (on unix), one per line.

Get them into ex (the :-part of vi).

1,$s/.*/mv & &/p

which gives you lines something like (my zeros-count might be wrong):

mv lnk0000000001.dat lnk000000001.dat


Then, do 
1,$s/dat lnk0000000/dat lnk/p

which gives you lines like

 
mv lnk0000000001.dat lnk1.dat

then "source" that file as a set of commands.

Of course remove only enough zeros so that the FINAL one
comes out correct, eg lnk128.dat.

Hope this helps.

David
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]