What I want is to take a directory, dirname/subdirname/filename and return dirname/subdirname/.
This is in Linux with bash.
I did some googling and found nothing because I can't express my ideas to the search engine properly.
What I want is to take a directory, dirname/subdirname/filename and return dirname/subdirname/.
This is in Linux with bash.
I did some googling and found nothing because I can't express my ideas to the search engine properly.