I know how to remove the extension of a file, when I know it as:
nameis=$(basename $dataset .csv)
but I want to remove any extension without knowing it beforehand, anyone know how to do this?
Any help appreciated,
Ted
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In bash you can do the following:
… e.g.:
This syntax is described in the bash man page as: