Files
bpfire/tools/finder.sh
ms 903310c40d setfilters und setaliases entfernt.
qosctrl Fix.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@806 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-22 19:58:53 +00:00

21 lines
465 B
Bash

#!/bin/sh
# Verson 0.1 by linuxadmin
# sucht in allen regulären Files nach dem eingegebenen Wert
# ACHTUNG DAS KANN EINIGE MINUTEN DAUERN !!!
name=finder.log
echo -n "Where: " ;read wo
echo -n "String: " ;read was
echo -n "Output to file? (y/n): " ;read jn
if [ "$jn" = "y" ]; then
echo "Creating log file $name"
find $wo -type f | xargs grep -in "$was" > $name
else
find $wo -type f | xargs grep -in "$was"
fi
if [ -d $name ]; then
cat $name
fi