📜  批量写入文件 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:50.389000             🧑  作者: Mango

代码示例3
rem 1 ">" will clear the file if it already exists, if not it will make a new
rem file. a ">>" will write in a new line.
rem Lets run the pause command (in cmd, get to cmd by typing in cmd in the
rem search box) the pause command will say "Press any key to continue"
rem but if you typpe in the "nul..." after a ">" or a ">>" now it will not say
rem anything for example :
pause rem (outputs Press any key to continue.)
pause>nul... rem if this makes a error try this "pause > nul..." it is the same
rem             just with spaces.