"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "samples/locate/updatedb" 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.

updatedb  (dbtool-1.9):updatedb  (dbtool-1.9.1)
skipping to change at line 12 skipping to change at line 12
# #
# simple locate alike # simple locate alike
# written as an example how to # written as an example how to
# use dbtool. # use dbtool.
# #
# updatedb creates the database # updatedb creates the database
# which is then used by locate # which is then used by locate
# to search for a certain string. # to search for a certain string.
# #
dbtool="/usr/bin/dbtool"; db="/var/db/locate.db";
find="/usr/bin/find";
db="/var/local/locate.db";
egrep="/bin/egrep";
cp="/bin/cp"
$cp /dev/null $db; echo -n > $db
$find / -ls | $egrep -v "^\/proc|dev|tmp" | $dbtool -d $db -i -f -R -t "^(.+?) ( find / -ls | egrep -v "^\/proc|dev|tmp" | dbtool -d $db -i -f -R -t "^(.+?) (\/.
\/.*)$"; *)$";
 End of changes. 2 change blocks. 
5 lines changed or deleted 1 lines changed or added

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