|
|
|
|
|
by akkartik
5121 days ago
|
|
Each pipe stage reads from the left and writes to the right. The eye goes left to see the input and right to see the output if it's redirected to file. The input file is reliably the second word, so C-A M-f gets me to it if I want to operate on a different file. !!:1 gets me the file if I want to use it in a new command. |
|
1. cat file
2. cat < file
3. echo abc|cat
4. echo abc|cat - file
cat can take input from the left, the right, or both
same goes for cut