Spring shell has built in line continuation support. Just terminate a line with a backslash (\) character then hit ENTER and continue on the next line.
Example 1
shell:>sum \
10 \
20
30
Example 2
shell:>echo "Hello \
How Are You \
I am fine. Thank You."
Hello How Are You I am fine. Thank You.
You can download complete application from this link.
https://github.com/harikrishna553/springboot/tree/master/shell/hello-world
No comments:
Post a Comment