Whats the difference between these
Python abcd.py > abcd.logs
and
Python abcd.py >> abcd.logs
In either case, the output of the program is stored in the file whose name is provided after the redirection operator.
It might depend on the shell you are using but the common behaviour is that >
will overwrite the target file, while >>
will append to it. If the target file does not exist it will be created in both cases.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With