Protecting America is our most solemn obligation...
If you want other filesystems searched too remove -xdev. Anyways, this will output an entire list of files into a file called dbase.txt in your home directory. Put it wherever you want though if you care.find -xdev / >> ~/dbase.txt
Make it executable and put it in a scripts directory. Typing "isolate junk" will isolate all filenames containing "junk" (case insensitive). "isolate junk -h" will just use the home directory. Use any regular expression.#!/bin/sh
if test $# -eq 1
then
grep -E -i $1 ~/dbase.txt
else
if test $2 = -h
then
grep -E -i $1 ~/dbase.txt | grep "/home/`whoami`"
else
echo "invalid option"
fi
fi
All trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the Poster. The Rest © 1997-2008 SourceForge, Inc.