Extract file basename without path and extension in bash [duplicate] Extract file basename without path and extension in bash [duplicate] unix unix