Qualifiers
Kenneth Brody
kenbrody at spamcop.net
Thu Dec 3 12:31:57 PST 2009
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
More information about the Filepro-list
mailing list