On Fri, Jun 08, 2001 at 11:09:14PM -0400, Seung Won Jun wrote:
> I couldn't find the "find" command in the Familiar V0.4 distribution,
> not to mention "locate". I also searched the package list, where I could
> find bash package, in vain. Anybody who knows if there exists "find" or
> any equivalent?
I wrote a simple "find" in bash, which may or may not be sufficient for your
purposes:
#!/bin/bash
find() {
if [ -d "$1" -a \! -L "$1" ]
then
echo $1/
ls $1 |
while read E
do
find $1/$E
done
else
echo $1
fi
}
find $1
I just noticed that it ignores dotfiles, whoops.
Sam Watkins
Received on Sat Jun 09 2001 - 00:50:11 EDT
This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:12:26 EDT