Creating and editing files with CLI
I need some help please. I'd like to know if it's possible to create and insert some text into a file with one (or a couple) of command line statements.
For example, I want to create a file called monkey.nuts - and on the same command line add the text "Monkey Nuts" into it. It would also be acceptable to create the file first - and then add the "Monkey Nuts" text on a new line.
So something like;
vim -[arg] "monkey nuts" > monkey.nuts
Or piping the command into the file. How do I create a file in the first place?
I hope this makes sense!
Thanks for any help