Convert a full pathname to just a path use this linux shell command:

CODE:
dirname