So I'm writing a Python script that passes different parameters to a Unix command and I need all of the command outputs to be saved to the same file.
However the only way I know is to re-write the file. Does anyone know how to append a file in Shell Script
Say my Unix command is:
Foo
and my operators are:
bar
bar1
bar2
The Unix command would be:
foo bar > output.txt
foo bar1 > output.txt
foo bar2 > output.txt
The contents of output.txt would only be "foo bar2"
Does anyone know how to append the file so all three command outputs will be in the output file?