...

/

Writing Multiple Lines to a File

Writing Multiple Lines to a File

Learn how to write multiple lines by using cat to redirect the input stream to a file.

We can create files from program output, and we can create a new file with a line of text, but we can also create a new file with multiple lines of text right from the command line without opening a text editor.

The cat command

In ...