6 ms·
> it's certainly a more logical program flow for a human to parse. ie "open file, grep for contents, do something else, etc". If you mean adding a 'cat' at the
by MichaelBurge 9y ago
> it's certainly a more logical program flow for a human to parse. ie "open file, grep for contents, do something else, etc".
If you mean adding a 'cat' at the start to provide a clear entry-point for the data, you can actually put the redirect at the beginning:
< example.txt grep cheese | tac > cheesy_lines.txt
- laumars 9y agoIndeed, but as I said, the cat complaint tends to be a practice mostly used by those less experienced in the command line so they are probably unaware of `<` let alone that it's placement.