Feb
23
23 February 2010, admin @ 12:12 pm
| > |
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 |
| < |
Uses contents of a named file as input to a command |
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 |
Write a comment