Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Twenty-five, the use of various pipe tools


May 23, 2021 DOS Command learning manual



"> < >> <<"


Redirect the output caused by various commands or the required inputs


For example, .bat ir s/b sgt;p can .bat name of the file name of the dir s/s/b s/b s/


time<p>>p.bat


There is only one carriage return in the p file, and you can append the time to the .bat p file


""""


The resulting content will be appended to the file and the content of the original document will be overwritten.


"""


For example: time - lt;p in the batch can be a time code or carriage return, you can change the time.


It should be noted that "prn" is the printer and "null" is an empty device


con is the monitor


Type p .bat print out the p.bat p.


Copy null p deletes the p file


Copy con p can edit the p file on the screen and F6 can exit the disk


Type p.gt;pp completes the copy of the p file to pp


Type p|more pauses when the screen is full