Syntax
- [command] [[> | >> | < | 2> | 2>>] file]
- [[> | >> | < | 2> | 2>>] file] [command]
Parameters
Parameter | Details |
---|
command | Any valid command. |
> | Write STDOUT to file. |
>> | Append STDOUT to file. |
< | Read file to STDIN . |
2> | Write STDERR to file. |
2>> | Append STDERR to file. |
file | The path to a file. |
- You can add as many different redirections as you want, so long as the redirection symbol and file remain together and in the correct order.