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".

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]/

Reply via email to