Don't use -T option to sort(1) (from 386BSD patch 132).

This commit is contained in:
mycroft 1993-04-22 03:35:56 +00:00
parent 8b0cd33cf6
commit f8134092d8
1 changed files with 3 additions and 3 deletions

View File

@ -59,11 +59,11 @@ set errs = $TMPDIR/locate.errs.$$
find ${SRCHPATHS} \( ! -fstype local -o -fstype fdesc -o -fstype kernfs \) -a \
-prune -o -print | \
tr '/' '\001' | \
(sort -T /var/tmp -f; echo $status > $errs) | tr '\001' '/' > $filelist
(sort -f; echo $status > $errs) | tr '\001' '/' > $filelist
$LIBDIR/locate.bigram < $filelist | \
(sort -T /var/tmp; echo $status >> $errs) | \
uniq -c | sort -T /var/tmp -nr | \
(sort; echo $status >> $errs) | \
uniq -c | sort -nr | \
awk '{ if (NR <= 128) print $2 }' | tr -d '\012' > $bigrams
# code the file list