bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Suggestion for updatedb


From: Diamond, Brett - AES
Subject: Suggestion for updatedb
Date: Wed, 9 May 2007 10:18:32 -0400

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.
*******************************************************************





reply via email to

[Prev in Thread] Current Thread [Next in Thread]