[SunHELP] Newbie Questions
sunhelp at sunhelp.org
sunhelp at sunhelp.org
Wed Jan 31 09:18:39 CST 2001
Hi,
Thanks for the quick replies...
Neither do what I want...though...
Search / AND directories that are not filesystems for files > 5 mb...
Thanks,
Paul
-----Original Message-----
From: Marc Belanger [mailto:mbelang1 at travelers.com]
Sent: Wednesday, January 31, 2001 12:23 AM
To: sunhelp
Cc: Enjoyer at aol.com
Subject: Re: [SunHELP] Newbie Questions
"Kalusniak, Jeff" wrote:
>
> 1) Did you look at the man page?
> find / -mount -size +5000000c
This doesnt seem to work on my box. Solaris 2.6, it still goes through the
directories.
Try this quick script. It outputs in ls -l format. Make sure you 'chmod 700
srch.sh'
before you run it.
#!bin/sh
# srch.sh
# Usage: ./srch.sh <dir>
ls -l $1 > ~/.tmpfile
awk '$5 >= 5000000 {print}' ~/.tmpfile
rm ~/.tmpfile
exit 0
Oh, by the way, the Sunhelp archives are at:
http://www.sunhelp.org/pipermail/sunhelp/
-Marc
_______________________________________________
SunHELP maillist - SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp
More information about the SunHELP
mailing list