Create and open file with one command?

Marcus McLean

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?

nathangiesbrecht

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Create keystore file with one command

From Dev

Create keystore file with one command

From Dev

open file if it exists, otherwise, create a new one and open it

From Dev

How to open cmd and run a batch file in it in one command

From Dev

Can I create a new file, and open it in a new tab in a single command?

From Dev

`open` command to open a file in an application

From Dev

Zsh: How to create a directory and file inside it with one command?

From Dev

system command to open a file in r

From Dev

Open file found with 'find' command

From Dev

Open file found with 'find' command

From Dev

bash: cannot open file with command

From Dev

system command to open a file in r

From Dev

How to open a directory of current buffer that is opening a file using just one command in Emacs?

From Dev

bash command to either open one command or another command

From Dev

Sublime Text - How do I create a keyboard shortcut to move text from one open file to another

From Dev

How does one create a "file handler" in iOS, that lets you open a URL in your app if you long press on it?

From Dev

How to open a file based on the output of the `file` command

From Dev

Using open() to create a file in C

From Dev

Open file and create new frame

From Dev

VBScript create and open a new file

From Dev

create and open file linux programming

From Dev

Quick method to create a file and open it

From Dev

postgresql open connection and execute more then one command

From Dev

postgresql open connection and execute more then one command

From Dev

What csplit-like command lets me create several files from one text file?

From Dev

Create file with command line in Node

From Dev

Create a command for a Linux executable file

From Dev

what is the original command to create a file?

From Dev

Unix, create file based on command

Related Related

  1. 1

    Create keystore file with one command

  2. 2

    Create keystore file with one command

  3. 3

    open file if it exists, otherwise, create a new one and open it

  4. 4

    How to open cmd and run a batch file in it in one command

  5. 5

    Can I create a new file, and open it in a new tab in a single command?

  6. 6

    `open` command to open a file in an application

  7. 7

    Zsh: How to create a directory and file inside it with one command?

  8. 8

    system command to open a file in r

  9. 9

    Open file found with 'find' command

  10. 10

    Open file found with 'find' command

  11. 11

    bash: cannot open file with command

  12. 12

    system command to open a file in r

  13. 13

    How to open a directory of current buffer that is opening a file using just one command in Emacs?

  14. 14

    bash command to either open one command or another command

  15. 15

    Sublime Text - How do I create a keyboard shortcut to move text from one open file to another

  16. 16

    How does one create a "file handler" in iOS, that lets you open a URL in your app if you long press on it?

  17. 17

    How to open a file based on the output of the `file` command

  18. 18

    Using open() to create a file in C

  19. 19

    Open file and create new frame

  20. 20

    VBScript create and open a new file

  21. 21

    create and open file linux programming

  22. 22

    Quick method to create a file and open it

  23. 23

    postgresql open connection and execute more then one command

  24. 24

    postgresql open connection and execute more then one command

  25. 25

    What csplit-like command lets me create several files from one text file?

  26. 26

    Create file with command line in Node

  27. 27

    Create a command for a Linux executable file

  28. 28

    what is the original command to create a file?

  29. 29

    Unix, create file based on command

HotTag

Archive