removing extension from file without knowing it

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

17
задан Mark Longair 19 March 2011 в 21:50
поделиться