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?
Create and open file with one command?
command line;files
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.