vesselinpeev
Programmer
Hello,
I am pondering upon
> file2 < file1 cat
The command executes "cat" on file1 and redirects
the standard output to file2.
This is another way of writing
"cat file1 > file2"
Can someone fully explain why the first version works at all? No explanation in Bash manuals.
It is the second version reversed with > at the start.
So the standard output is redirected to file2, but as the input to file2 we get "file1 cat". Why the need for > ?
Thank you in advance for your help.
I am pondering upon
> file2 < file1 cat
The command executes "cat" on file1 and redirects
the standard output to file2.
This is another way of writing
"cat file1 > file2"
Can someone fully explain why the first version works at all? No explanation in Bash manuals.
It is the second version reversed with > at the start.
So the standard output is redirected to file2, but as the input to file2 we get "file1 cat". Why the need for > ?
Thank you in advance for your help.