παραδείγματα χρήσης συμβόλων σε command line
Symbol - Function - Example
>
Sends output to a named file. If file does not exist, it creates one. Overwrites existing file
command > somefile
>>
Appends output to contents of a named file or creates a file if none exists
command >> somefile
¦
Sends ("pipes") the output of command1 to the input of command2
command1 ¦ command2
&
Used to combine two commands. Executes command1 and then command2
command1 & command2
&&
A conditional combination. Executes command2 if command1 completes successfully
command1 && command2
¦¦
Command2 executes only if command1 does not complete successfully.
command1 ¦¦ command2
@
Used in batch files at the beginning of a line to turn off the display of commands
@echo off
No comments:
Post a Comment