Anil Gulecha wrote:
>
>
> On 1/23/07, *Moinak Ghosh* <Moinak.Ghosh at sun.com 
> <mailto:Moinak.Ghosh at sun.com>> wrote:
>
>     you'd need to use the following shell snippet:
>
>     find . | while read f
>     do
>         cnt=`echo $f | sed 's/\// /g' | wc -w`
>         if [ $cnt -lt <maxdepth> ]
>         then
>             echo $f
>         fi
>     done
>
>     AFAIK there is no direct replacement.
>
>
> In this case we are traversing the entire structure, just not printing 
> it out. this is unacceptable as the script will be looking for 
> specific files, and taring them up.

   It does print. The default for find is to print - try it. And you can 
provide
   any arbitrary maxdepth.

Regards,
Moinak.

>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ug-bosug mailing list
> List-Unsubscribe: mailto:ug-bosug-unsubscribe at opensolaris.org
> List-Owner: mailto:ug-bosug-owner at opensolaris.org
> List-Archives: http://www.opensolaris.org/jive/forum.jspa?forumID=54
>   


Reply via email to