Created
July 17, 2015 13:52
-
-
Save kdabir/5afa19c0b80b732d01e4 to your computer and use it in GitHub Desktop.
Get extention of line on command line
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
groovy -ne 'println line.split(/\./)[-1]' | |
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
find . -type f | groovy -ne 'println line.split(/\./)[-1]' | sort | uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment