Skip to content

Instantly share code, notes, and snippets.

@danixland
Last active January 24, 2016 21:32
Show Gist options
  • Save danixland/5878035 to your computer and use it in GitHub Desktop.
Save danixland/5878035 to your computer and use it in GitHub Desktop.
just a snippet to remember how to remove extensions from filenames in bash
# we have a test file
FILE=test.avi
# and we want to output just its filename without the extension
echo ${FILE%.avi}
# this returns
# test
# ;)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment