Get last subfolder on a path...
So lets say I create a bash script and I assign a folder variable like:
is there any way to make another variable with just the specific SUBFOLDER
(?some command?)----> will make My_variable_subfolder = SUBFOLDER
so if I do
i get: /PATH/TO/SPECIFIC/SUBFOLDER
and echo $My_variable_subfolder
i get: /SUBFOLDER
The tree and path names will change so I jjust want the last subfolder that I will access to access its files.