dirname.1posix "$file"
return the directory portion of a pathname
source manpages: dirname