multiple lines to file bash using echo code example
Example: shell write multiple lines to file
#!/bin/bash
cat > /path/to/myfile <<EOL
write whatever youwant
with multiple lines
...
EOL
#!/bin/bash
cat > /path/to/myfile <<EOL
write whatever youwant
with multiple lines
...
EOL