How to write multiple lines to a file using Linux echo command?

You can use Linux echo command with redirection operator (> | >>) to write the output of echo command to a file. If the destination file does not exist, it will create it.

Leave a Reply