I am trying to get \"abc.txt\" out of /this/is/could/be/any/path/abc.txt using Unix command. Note that /this/is/could/be/any/path is d
\"abc.txt\"
/this/is/could/be/any/path/abc.txt
/this/is/could/be/any/path
You can use dirname command
$ dirname $path