ahh

~$ which cat
you are viewing a single comment's thread
view the rest of the comments
[–] 12 points 6 days ago (2 children)

Fair, but in general I find it way more useful to use cat for piping.

In most cases I'll do something like

cat file | program
cat file | program | grep
cat file | program | grep | cut

This gets more complicated if the file is at the end of the command.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 8 points 6 days ago (1 child)

    It wouldn't be at the end, since you'd still be piping into program

    program <file | grep | cut
    
  • source
  • parent
  • hideshow 2 child comments
  • [–] 14 points 6 days ago (3 children)

    And <file program | grep | cut works too

  • source
  • parent
  • hideshow 6 child comments