How to write multiple line string using Bash with variables?
How can I write multi-lines in a file called myconfig.conf using BASH? #!/bin/bash kernel=”2.6.39″; distro=”xyz”; echo <<< EOL line 1, ${kernel} line 2, line 3, ${distro} line 4 line … EOL >> /etc/myconfig.conf; cat /etc/myconfig.conf; 8 Answers 8