I want to create a text file and open it in a text editor with a single command.
I know touch file.txt
creates a file and open file.txt
opens the file, but is there a way to do this with a single command?
You could use touch myfile.txt; open myfile.txt
. If this is something you'll be doing frequently, you could create an alias for it.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments