[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help with scripting



On Thu, 2005-04-07 at 11:48 -0400, Michael Marsh wrote:
> On Apr 7, 2005 11:32 AM, michael <linux@networkingnewsletter.org.uk> wrote:
> > sounds like homework to me but how about, for bash shell:
> >  let num=`find . -type d -maxdepth 1 | wc -l`-1;echo $num
> 
> Or
> num=`find / -type d -uid <user id> | wc -l`

In fact I forgot to cd to the level above user2 (lost original post so
this prob makes no sense)...



Reply to: