Sunday, August 2, 2009

Unix question, cat 1> file-A 0< file-C 2>&1 what does this mean?

Although not a typical way of writing the command, what it says to do is:





1) Take the contents of file-C as input to a cat command


2) Write the output of that cat command to file-A


3) and send any errors from the command to the same place as stdout (file-A)





Could also be written (and easier to read) as:





cat file-C %26gt;file-A 2%26gt;%26amp;1

hollyhock

No comments:

Post a Comment