So, here's a simple code:
(echo "Some text to prepend"; cat gero.txt) > file.txt
And I can't really grasp the mechanics of this code. So basically gero.txt is an already existing file, we create a new file.txt with "Some text to prepend"+gero.txt
The thing I don't get is that part in parentheses. How exactly does it redirect the output of echo to cat with no evident operator like pipe |
etc.?
>
– Jeff Schaller Jun 19 '18 at 22:16echo
andcat
tofile.txt
– steeldriver Jun 19 '18 at 22:32