summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-06-24 23:49:24 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-06-24 23:49:24 +0000
commit8a3c03364d6c431c9f77359c20309193590e5d24 (patch)
tree50c1f35c43adb9705986c45bfd096b4fa9e9fd32
parent9445c6500283cfee38b7b931707ed7e1c51fda98 (diff)
use print, not printf in awk; from ak at freeshell
-rw-r--r--usr.bin/locate/locate/concatdb.sh6
-rw-r--r--usr.bin/locate/locate/mklocatedb.sh6
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/locate/locate/concatdb.sh b/usr.bin/locate/locate/concatdb.sh
index 1f1fec279ae..de137f73ceb 100644
--- a/usr.bin/locate/locate/concatdb.sh
+++ b/usr.bin/locate/locate/concatdb.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $OpenBSD: concatdb.sh,v 1.7 2002/10/04 17:33:45 millert Exp $
+# $OpenBSD: concatdb.sh,v 1.8 2003/06/24 23:49:23 millert Exp $
#
# Copyright (c) September 1995 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
# All rights reserved.
@@ -32,7 +32,7 @@
#
# Sequence of databases is important.
#
-# $Id: concatdb.sh,v 1.7 2002/10/04 17:33:45 millert Exp $
+# $Id: concatdb.sh,v 1.8 2003/06/24 23:49:23 millert Exp $
# The directory containing locate subprograms
: ${LIBEXECDIR=/usr/libexec}; export LIBEXECDIR
@@ -65,7 +65,7 @@ trap 'rm -f $bigrams' 0 1 2 3 5 10 15
for db
do
$locate -d $db /
-done | $bigram | $sort -nr | awk 'NR <= 128 { printf $2 }' > $bigrams
+done | $bigram | $sort -nr | awk 'NR <= 128 { print $2 }' > $bigrams
for db
do
diff --git a/usr.bin/locate/locate/mklocatedb.sh b/usr.bin/locate/locate/mklocatedb.sh
index 1e6f85e581a..482677d5a72 100644
--- a/usr.bin/locate/locate/mklocatedb.sh
+++ b/usr.bin/locate/locate/mklocatedb.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $OpenBSD: mklocatedb.sh,v 1.9 2003/02/08 10:19:30 pvalchev Exp $
+# $OpenBSD: mklocatedb.sh,v 1.10 2003/06/24 23:49:23 millert Exp $
#
# Copyright (c) September 1995 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
# All rights reserved.
@@ -30,7 +30,7 @@
#
# usage: mklocatedb [-presort] < filelist > database
#
-# $Id: mklocatedb.sh,v 1.9 2003/02/08 10:19:30 pvalchev Exp $
+# $Id: mklocatedb.sh,v 1.10 2003/06/24 23:49:23 millert Exp $
# The directory containing locate subprograms
@@ -68,7 +68,7 @@ trap 'rm -f $bigrams $filelist' 0 1 2 3 5 10 15
if $sortcmd $sortopt > $filelist; then
$bigram < $filelist | $sort -nr |
- awk 'NR <= 128 { printf $2 }' > $bigrams &&
+ awk 'NR <= 128 { print $2 }' > $bigrams &&
$code $bigrams < $filelist
else
echo "`basename $0`: cannot build locate database" >&2