skip to content
Alvin Lucillo

Script from cmd line

/ 1 min read

💻 Tech

If you want to run some bash script without creating a way, one way is via heredoc. Type in bash <<EOF first then type in your script one by one and end with EOF.

bash <<'EOF'
heredoc> for i in $(seq 1 5); do echo $i; done;
heredoc> EOF
1
2
3
4
5