Hey guys-
Can anyone show me how to extact the directory path from a given filename?
For example, I am given: /home/users/joe/data/hello.dat
and I want to extract: /home/users/joe/data
If anyone could show me how to accomplish this, I would greatly appreciate it.
Thanks guys!