Skip to content

Instantly share code, notes, and snippets.

@AdamGagorik
Last active September 17, 2015 16:20
Show Gist options
  • Save AdamGagorik/202d3aa80502913144e5 to your computer and use it in GitHub Desktop.
Save AdamGagorik/202d3aa80502913144e5 to your computer and use it in GitHub Desktop.
Extract extension from file name in bash.
ext=${file##*.}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment