Re: Directory level Depth check - Shell script
- From: "Chris F.A. Johnson" <cfajohnson@xxxxxxxxx>
- Date: Tue, 29 Jan 2008 16:43:32 -0500
On 2008-01-29, Meendar wrote:
Anybody know how to compare the directory depth level of two
directories, whether their depth level are same or not through shell
script. (also depth level for each sub-directory )
path=/absolute/path/to/directory
IFS=/
set -f
set -- $path
depth=$#
--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
.
- References:
- Directory level Depth check - Shell script
- From: Meendar
- Directory level Depth check - Shell script
- Prev by Date: Re: Using a c debugger with a curses program
- Next by Date: Re: Directory level Depth check - Shell script
- Previous by thread: Directory level Depth check - Shell script
- Next by thread: Re: Directory level Depth check - Shell script
- Index(es):
Relevant Pages
|
|