cat "Some text here." > myfile.txt Possible? Such that the contents of myfile.txt would now be overwritten to: Some text here. This doesn't work for me, but also doesn't throw any errors.

Understanding the Context

Specifically interested in a cat -based solution (not vim/vi/emacs, etc.). All examples online show cat used in conjunction with file inputs, not raw text... I am writing a shell script in OSX(unix) environment. I have a file called test.properties with the following content: cat test.properties gets the following output: //This file is intended for ...

Key Insights