Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
shell write multiple lines to file
John Kim
Programming language:
Shell/Bash
2021-04-01 07:55:49
4
Q:
shell write multiple lines to file
Learner
Code:
Shell/Bash
2021-02-02 03:00:20
#!/bin/bash cat > /path/to/myfile <<EOL write whatever youwant with multiple lines ... EOL
2
Tags
line
file
shell
multiple
Related
bash print lines that dont have a word
bash return lines from one file that arent in another
shell count number of lines
powershell zip multiple files
copy contents of multiple files to one file powershell
shell count lines output
multi line comment in shell script
how to get specific lines of shell output
bash split file into multiple files
powershell multiline comment
single line comment in shell script
bash combine output from two commands
New to Communities?
Join the community