I have a filename which ends with .zip
and I wanted just the filename without zip. Here I found a trick in bash.
$f="05 - Means-End Analysis Videos.zip"
$echo "${f%*.zip}"
05 - Means-End Analysis Videos
What is happening here? How come %*.zip
is removing my extension?