Format:
dirname pathname
The opposite of basename, dirname prints the pathname only:
$ dirname /home/dave/myfile /home/dave
3.135.219.78