Last active
February 28, 2018 08:06
-
-
Save Gyumeijie/e5f10894dd8acb728c269a9ec8ae9db9 to your computer and use it in GitHub Desktop.
Remove suffix of batch files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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