To Whom,

I hope several people can benefit from the script below. I'm placing it
out on this newsgroup for everyone's pleasure, because several of you
have made it possible for me to achieve more quality time. So, thanks to
those, their efforts, and their help who helped me!

The file-system search type is ext2. If you have any ideas to improve
upon the script, let me know. Of course, the more global - the more
slower the search and the more information spued out on the screen.

Note: I do not take any responsibilities for any damages, loss, or
marginal errors that may occur as a result of the following script.
(Just added that line for my benefit).

Help files cover all the details. It does not search links... that was
done purposely.

--------------------------------------------

#!/bin/sh
#
NUMARG=$#
MBIN=/usr/local/bin
MPATH=$1
MSUBJECT=$2
if [ $NUMARG = 0 ]; then
 echo ""
 echo "You need to specify a \`path' and \`subject.'"
 echo ""
 echo ""
 exit 1
fi
clear
echo -e "\n  Results from your query will display in a moment"
echo "<>************************************************<>"
echo -e "\n  Results from your query will display in a moment" >
$MBIN/global-results
echo "<>************************************************<>" >>
$MBIN/global-results
echo "  FOUND THE FOLLOWING $MSUBJECT RESULTS IN $MPATH." >>
$MBIN/global-results
echo "" >> $MBIN/global-results
echo "" >> $MBIN/global-results
find $MPATH -type f -fstype ext2 | xargs grep -in $MSUBJECT >>
$MBIN/global-results
sleep 3
less -MIp $MSUBJECT -j4 $MBIN/global-results
rm -f $MBIN/global-results

*************************************************************************

Signed,
Satisfied

P.'S. Detailed Documentation(s) and Sample(s) are more than welcome!


____________________________ Reply Separator
____________________________


-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to