Skip to content

Instantly share code, notes, and snippets.

@bdkosher
Created May 20, 2013 19:29
Show Gist options
  • Save bdkosher/5614793 to your computer and use it in GitHub Desktop.
Save bdkosher/5614793 to your computer and use it in GitHub Desktop.
Using a Groovy inline script as a poor man's `cut` command
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