[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LYNX-DEV Re: treelynx
From: |
Klaus Weide |
Subject: |
Re: LYNX-DEV Re: treelynx |
Date: |
Wed, 30 Apr 1997 19:36:41 -0500 (CDT) |
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.
Klaus
;
; To UNSUBSCRIBE: Send a mail message to address@hidden
; with "unsubscribe lynx-dev" (without the
; quotation marks) on a line by itself.
;