I'm looking over some batch files written by a coworker, and I ran into some weird syntax where he calls redirection operator at the beginning of his command.
This:
> output.txt ECHO something like this
rather than:
ECHO something like this > output.txt
It threw me off for a second. It works, so I assume its valid. I went to look for an official reference to confirm, but could not find one.
I did find this reference on the usage of the operator itself.
I found this bash version of what I'm looking for linked to here: POSIX sh EBNF grammar
What is the correct syntax for the use of the > and >> operators in batch?
Edit: To clarify, I'm not looking for examples as documentation. I would like to see documentation explaining how cmd.exe commands and .bat files are parsed specifically in regards to redirection operators.