The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 08-21-2008
spirtle spirtle is offline
Registered User
  
 

Join Date: Jun 2008
Location: Scotland
Posts: 150
Quote:
1) cat < K1 K2
The above operation should actually display contents of the both files.
I'm curious, what makes you think it should do that? My man page states
Quote:
Concatenate FILE(s), or standard input, to standard output.
(my emphasis), which I understand to mean "not both", i.e. if you give cat a file to read from, standard input is ignored.


Code:
cat > K1 K2

Like Latin, the word order is not as important as the syntax. >K1 means that the output goes into K1. You can achieve the same affect with

Code:
>K1 cat K2