Qualifiers
John Esak
john at valar.com
Thu Dec 3 17:18:11 PST 2009
Yes, that is the idea of course... Very nifty... And to help further, the
"getting the header only" part could be done with dd if=ix_file of=ixq_file
count=1024 bs=1
Meaning 1024 covers the index header fine and gives you a nice clean new
index.
Ken's done all the other work. Wow. Now, I want to see it in batch! :-)
Which is why I always wrote it in filePro.
John
> -----Original Message-----
> From: filepro-list-bounces+john=valar.com at lists.celestial.com
> [mailto:filepro-list-bounces+john=valar.com at lists.celestial.co
m] On Behalf Of Kenneth Brody
> Sent: Thursday, December 03, 2009 3:32 PM
> To: FilePro Mailing List
> Subject: Re: Qualifiers
>
> Jean-Pierre A. Radley wrote:
> > Yes, using ddefine to add a bunch of qualifiers to a
> filePro database is
> > quickly done by ddefine, but Frank, I think, was staring at several
> > hundred filePro database directories in each of which he
> wants to add
> > the same five qualifiers.
> >
> > I can see that being rather tedious. But is it scriptable?
> [...]
>
> Pseudo-code (untested):
>
> for file in list_of_files
> do
> cd $PFDATA$PFDIR/filepro/$file
> for qual in list_of_qualifiers
> do
> create empty key$qual
> create empty data$qual
> for ix in A through Z
> do
> if index.$ix exists, copy (header of) index.$ix to
> index$qual.$ix
> done
> append "$qual" to qualifiers file
> chown/chmod key$qual data$qual index$qual.*
> rebuild all indexes in qualifier
> done
> done
>
> --
> Kenneth Brody
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
More information about the Filepro-list
mailing list