string $DirectoryName[] = fileDialog2 -ds 1 -fm 3 -cap "Select Desired Directory"
;
print $DirectoryName;
The Result is:
/Users/Me/Desktop/GalleryPics/Other
What I'd like to do is strip away everything except the final name of the directory, in this case "Other".
I've been all through the manual but I can't find a way to do this. Any help would be much appreciated!