Skip to content

Instantly share code, notes, and snippets.

@Gyumeijie
Last active February 28, 2018 08:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gyumeijie/e5f10894dd8acb728c269a9ec8ae9db9 to your computer and use it in GitHub Desktop.
Save Gyumeijie/e5f10894dd8acb728c269a9ec8ae9db9 to your computer and use it in GitHub Desktop.
Remove suffix of batch files
# We first get a list of file with suffix
# and then use `cut` utility to split the
# full filename into a name and suffix using
# dot as delimiter.
cut -f1 -d'.' <<<$(ls *.*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment