How can I remove the extension of a filename in a shell script? How can I remove the extension of a filename in a shell script? bash bash