Hi all, Does anyone know of a way to get the maximum directory nesting, starting from the specified base, using standard Linux commands only (no php/perl/python etc.)?
e.g. if the directory structure is as follows - d1 ->d2 ->->d3 ->->->d4 ->d5 ->->d6 I need a shell script which will give me the answer "4" (i.e. depth of the deepest directory - d4). Googling has given me no answers and I am not sure if it can even be done elegantly in bash/sed/awk etc. -- Anupam _______________________________________________ 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]/
