According to Dan Langille:
> On 13 Nov 2002 at 21:48, Gilles Detillieux wrote:
> > According to Dan Langille:
> > > I have indexed a mailing list archive. My next goal is to nightly
> > > update that index by indexing the entire month's archive and then
> > > merging that into the main database. At present, there are about 4
> > > years of data. I'm seeking comments on my approach.
> >
> > You may also want to have a look at how we do it for the htdig-general
> > and htdig-dev archives:
> >
> > http://www.htdig.org/files/contrib/scripts/README.geoupdate-ungeoify
> > http://www.htdig.org/files/contrib/scripts/geoupdate.sh
>
> At the end of the script is the following:
>
> (cd $dbdir && mv db.words.db{.work,} && mv db.docs.index{.work,} &&
> cp -p db.docdb{.work,})
>
> Which produces this:
> usage: mv [-f | -i | -n] [-v] source target
> mv [-f | -i | -n] [-v] source ... directory
>
> That doesn't work under FreeBSD /bin/sh. Which /bin/sh is that from?
Linux systems use Bash as the standard shell, which has some extensions
over what the standard Bourne shell has, the parsing of {,} lists being
one of them. (Bash borrowed this syntax from Csh, as did Ksh I think.)
Just expand these manually yourself in your script, and your shell should
be happy. E.g.:
mv db.words.db{.work,} --> mv db.words.db.work db.words.db
Either that or use a different shell to parse your script.
--
Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/
Dept. Physiology, U. of Manitoba Winnipeg, MB R3E 3J7 (Canada)
-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html