lynx-dev
[Top][All Lists]
Advanced

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

Re: LYNX-DEV Re: treelynx


From: Foteos Macrides
Subject: Re: LYNX-DEV Re: treelynx
Date: Thu, 01 May 1997 02:01:53 -0500 (EST)

Klaus Weide <address@hidden> wrote:
>On Wed, 30 Apr 1997, David Combs wrote:
>
>> > 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?
>
>[ David's way ]
>
>Here's another way, but it may depend on which shell is being used:
>
>  for f in lnk000*.dat;do echo mv -i $f lnk${f#lnk000};done
>
>The "echo" is just for testing, remove it to actually *do* the "mv"...
>Also this removes just three 0's.  Modify as needed.

        In LYMainLoop.c, #ifdef the line:

        sprintf(cfile,"lnk%08d.dat",ccount);
        
so that it's:

        sprintf(cfile,"lnk%05d.dat",ccount);

for the ports to 8.3 filename systems.  That means those systems can
only create 99,999 output files when traversing with -crawl, instead
of the 99,999,999 on Unix and VMS (not a very severe restriction, I'd
say ;).  If you create them on Unix or VMS for downloading to a PC,
add a script as a choice in the download options menu which trims out
the three zeros and downloads them all without prompting you for each
one, but make sure you didn't create more than 99,999 of them. :)


                                Fote

=========================================================================
 Foteos Macrides            Worcester Foundation for Biomedical Research
 address@hidden         222 Maple Avenue, Shrewsbury, MA 01545
=========================================================================
;
; 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]