Redirecting output to append to a file
When the notation >
>
filename is
added to the end of a command, the output of the command is appended to the
specified file name, rather than writing over any existing data. The >>
symbol
is known as the append redirection operator.
For example, to append file2 to file1, type the following:
cat file2 >> file1
Note: If
the file1 file does not exist, it is created, unless
the noclobber option of the set built-in ksh (Korn
shell) or csh (C shell) command is specified.