Sep 112010
Multi-line strings in Bash
Answer:
Bash support multiple line string, e.g.
#!/bin/bash
sort <<EOT
apple
orange
banna
EOT
When you execute the script,
# bash test.sh
It gives:
apple
banna
orange
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Multi-line strings in Bash
Answer:
Bash support multiple line string, e.g.
#!/bin/bash
sort <<EOT
apple
orange
banna
EOT
When you execute the script,
# bash test.sh
It gives:
apple
banna
orange