I know using command > file will write the stdout of command to file, but is there a similar method to append to file?
Answer
command > file will clobber the file and replace all data with stdout.
command >> file will append stdout to the file. (meaning the value of stdout is tacked to the end of the file).
No comments:
Post a Comment