The basename command easily strips the directory and suffix from a filename.
You must be logged in to post a comment.