Skip to main content

10.3) Redirection


These results are printed to the screen. If you want the result to be output to a new data file then use the redirection command. For example, we can make a new file called file3 with the results in it.

paste file1 file2 > file3

Now I will show you something else about the redirection when you are storing output. Try the last command again:

paste file1 file2 > file3

Unix will complain that ‘file3’ already exists.