Hi Folks -
I have a path such as the following:
I have other paths such as:
Is there a way to extract the sub directories of "/Files"?
THanks!
Hi Folks -
I have a path such as the following:
I have other paths such as:
Is there a way to extract the sub directories of "/Files"?
THanks!
How are those paths presented / stored? In shell variables? Try
V1=/PPC/Cloud_Automation/Applications/APPNAME/Files/Data\ Management/Data
V2=/PPC/Cloud_Automation/Applications/APPNAME/Files/Essbase/AppName
echo ${V1##*Files/}
Data Management/Data
echo ${V2##*Files/}
Essbase/AppName
If they are directories in your filesystem you could try:
$ cd /PPC/Cloud_Automation/Applications/APPNAME/Files
$ find . -type d -print
.
./Data Management
./Data Management/Data
./Essbase
./Essbase/AppName
or
$ cd /PPC/Cloud_Automation/Applications/APPNAME/Files
$ find . -mindepth 2 -type d -print
./Data Management/Data
./Essbase/AppName