Linux - How to create a file and write by script?
cat > text.out<<EOFWrite what you want to write here....EOF
EOF is just a notation of end of the file. Once system executes to that word it knows it is the end of the file. So the file is closed and writing ends.