Tuesday, November 22, 2005

Topic of the Day: Hidden powers of copy command

Though we everyone knows the purpose of copy command there is one more function in it which we overlook. It is the power to append files. This function comes handy in several situations specifically for ad-hoc purposes. Here is how..


  1. Scenario: Append content of file 2 to file 1.
    Example: Copy file1+file2
  2. Scenario: Merge two files to form a new file
    Example: Copy file1+file2 file3
Note: This above solution could be applied to any files (text,doc,xml etc.,)

No comments: