Is something like this:
cat \"Some text here.\" > myfile.txt
Possible? Such that the contents of myfile.txt would now be overwr
myfile.txt
Another way to write text to file using cat would be something like this
cat >file.txt <<< Write something here