On Wed, Jul 30, 2008 at 12:45, Gora Mohanty <[EMAIL PROTECTED]> wrote:
> On Wed, 30 Jul 2008 12:32:13 +0530
> "Puneet Lakhina" <[EMAIL PROTECTED]> wrote:
>
> > you could use the following script
> > basedir=$1;
> > find $basedir -type d|sed "s#$basedir##g" | awk -F'/' '{print NF-1 "\n"}'
> |
> > sort -n | tail -1;
> >
> > invoke this using
> > $>./script.sh <dir>
>
> [...]
>
> Try it with a directory named "My Documents".
>
Yeah, sorry that wont work. Any workarounds? keeping in mind non
availability of printf.
>
> Regards,
> Gora
>
> _______________________________________________
> ilugd mailinglist -- [email protected]
> http://frodo.hserus.net/mailman/listinfo/ilugd
> Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
> http://www.mail-archive.com/[email protected]/
>
--
Puneet
http://sahyog.blogspot.com/
Latest Post: javac -g
_______________________________________________
ilugd mailinglist -- [email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
http://www.mail-archive.com/[email protected]/