How to save a file under a different name in vi
2 answers
Enter :w filename
vi in command line mode, for example @Yedidia said ...
I think you are confusing writing the output of the output to a file.
What will be the next command to create or rewrite text.txt
:
action > text.txt
and to add the command output to text.txt it will look like this:
action >> text.txt
+1
source to share