c-shell script.
I have an environment variable that contains a directory structure. I'd
like to parse out the subdirectories into other variables for use in
some logic checking. Any ideas on how I might do this?
Example:
I have:
$DM_HOME = /dir/sub/sub_sub/sub_sub2
I want:
$DM_SUB = sub
$DM_SUB1 = sub_sub
$DM_SUB2 = sub_sub2
TIA
Joe Schmalhofer