You can create a multiline text file without using any text editor. This is done like this:
# cat > ~/test.txt <<EOF
~/test.txt is the file we want to create. Now you can type the contents line by line. When you are finished, type EOF:
Another way to create a text file by George Notaras is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Copyright © 2005 - Some Rights Reserved