i have the variable $filename which i'd like to strip of it's extension. i mean for example in perl i'd simply do
Code:
$filename =~ s/(.+?)\..*/$1/;
and that'd leave me with the name minus the extension. Has anyone any ideas about how i can do this with a bash script?

thanks,
-Sean