Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

shell write multiple lines to file

#!/bin/bash

cat > /path/to/myfile <<EOL
write whatever youwant
with multiple lines
... 
EOL
 
PREVIOUS NEXT
Tagged: #shell #write #multiple #lines #file
ADD COMMENT
Topic
Name
1+9 =