Is something like this:
cat \"Some text here.\" > myfile.txt
Possible? Such that the contents of myfile.txt would now be overwr
myfile.txt
Write multi-line text with environment variables using echo:
echo
echo -e " Home Directory: $HOME \n hello world 1 \n hello world 2 \n line n... \n " > file.txt