malama% cat night >> day Unlike the previous example the contents of the file ``day'' will not be obliterated; instead the contents of the file ``night'' will be added at the end of the file ``day''.
You can use either > or >> to redirect the output of a command. If, for example, you wished to have output from a program go to a file instead of the screen, you would use: malama% myprog > outfile The file ``outfile'' will contain the output from your program. Now, supposing you made some change to your program and wished to have the output from a second run added to the first. Instead of using > , which would wipe out the first output, you would use >> .
malama% myprog >> outfile ``outfile'' will contain two sets of output from the program myprog.