"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "samples/locate/locate" between
dbtool-1.9.tar.gz and dbtool-1.9.1.tar.gz

About: dbtool stores and retrieves data in a key/value format in a hash database.

locate  (dbtool-1.9):locate  (dbtool-1.9.1)
skipping to change at line 14 skipping to change at line 14
# written as an example how to # written as an example how to
# use dbtool. # use dbtool.
# #
# locate searches the database # locate searches the database
# for a file which matches a # for a file which matches a
# certain string. The parameter # certain string. The parameter
# to locate can be a fully perl- # to locate can be a fully perl-
# compliant regular expression. # compliant regular expression.
# #
dbtool="/usr/bin/dbtool"; db="/var/db/locate.db"
find="/usr/bin/find"; regex=$1
db="/var/local/locate.db";
sort="/bin/sort";
regex=$1;
if [ "x$regex" != "x" ]; then if test -n "$regex"; then
$dbtool -d $db -S -k $regex -w -R; dbtool -d $db -S -k $regex -w -R
else else
echo "Usage: locate <expression>"; echo "Usage: locate <expression>"
fi fi
 End of changes. 3 change blocks. 
8 lines changed or deleted 5 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS