Created
January 13, 2018 03:52
-
-
Save lakemove/e061f725aea7b50c4d34a67b40cf7d5a to your computer and use it in GitHub Desktop.
run groovy script in bash script
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
#!/bin/bash | |
GREETINGS='HELLO GROOVY AND BASH' | |
echo $GREETINGS | |
#to interpret bash variable , remove single quotes in 'EOF' | |
groovy -e "new GroovyShell().evaluate(System.in.text)" <<'EOF' | |
println("this is groovy print") | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment