echo foo >> file date >> file cat stuff >> file
{ echo foo date cat stuff } >> file
Rather than adding >> something after every single line, you can simply group the relevant commands and redirect the group.
>> something
This is mainly a stylistic issue, and can freely be ignored.
There was an error while loading. Please reload this page.