migrated to github

This commit is contained in:
TLINDEN
2015-05-14 18:34:10 +02:00
parent f1f3230620
commit 5017b6b186
36 changed files with 5814 additions and 2 deletions

21
samples/locate/updatedb~ Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/sh
#
# simple locate alike
# written as an example how to
# use dbtool.
#
# updatedb creates the database
# which is then used by locate
# to search for a certain string.
#
# $Id: updatedb,v 1.2 2001/06/26 23:00:02 scip Exp $
#
dbtool="/usr/bin/dbtool";
find="/usr/bin/find";
db="/var/local/locate.db";
egrep="/bin/egrep";
cp="/bin/cp"
$cp /dev/null $db;
$find / -ls | $egrep -v "^\/proc|dev|tmp" | $dbtool -d $db -i -f -R -t "^(.+?) (\/.*)$";