Created
May 20, 2013 19:29
-
-
Save bdkosher/5614793 to your computer and use it in GitHub Desktop.
Using a Groovy inline script as a poor man's `cut` command
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 -e "new File('data.in').eachLine { println it[0..12] }" > data.out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment