I suggest adding the "-u" parameter on the sort that feeds frcode.  That way 
duplicate entries that may have been introduced by specifying overlapping 
directories with "--localpaths" will be pruned.  The justification is that, 
although the find command may have found the item more than once, but the item 
itself only exists once.
 
Basically, replace:
 
} | $sort -f | $frcode $frcode_options > $LOCATE_DB.n
 
with
 
} | $sort -fu | $frcode $frcode_options > $LOCATE_DB.n
 
I actually make this change whenever I install findutils, and thought I should 
pass it back.
 
Thanks for the great set of utilities.
 
Brett Diamond
*****************************************************************
This e-mail and any files transmitted with it may be proprietary 
and are intended solely for the use of the individual or entity to 
whom they are addressed. If you have received this e-mail in 
error please notify the sender. Please note that any views or
opinions presented in this e-mail are solely those of the author 
and do not necessarily represent those of ITT Corporation. The 
recipient should check this e-mail and any attachments for the 
presence of viruses. ITT accepts no liability for any damage 
caused by any virus transmitted by this e-mail.
*******************************************************************



_______________________________________________
Bug-findutils mailing list
Bug-findutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-findutils

Reply via email to