R's Workshop
About
Writing
Contact
Print Multiple Lines to File from Bash
Print multiple lines to file from bash.
cat
<<
EOF
>> file.txt line 1 line 2
EOF
Reference
How To Cat EOF For Multi-Line String In Linux Bash?
bash
Linux
Written on October 25th, 2021 by Borting
This post is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
. Feel free to share!
Related Posts
Detect Lgoin via SSH in Shell
Disable IPv6 on Ubuntu Linux
Linux PCI Device
Use neconsole to Debug Linux Kernel Panic