Get the Parent Directory of a File Path in bash
SOME_PATH="/this/is/the space named/folder/file.txt"
PARENT_DIR=""
Output:
/this/is/the space named/folder
-- end of line --
SOME_PATH="/this/is/the space named/folder/file.txt"
PARENT_DIR=""
/this/is/the space named/folder