Re:PSA about abuse of cat(1) command. Don't abuse cats
by adrian_b on Saturday July 18, 2026 @12:37AM
(#48955266)
The simpler and better way to write your pipeline is:
"< file.txt somecommand | othercommand | anothercommand"
There is never any need for "cat".
When such a pipeline is used repeatedly in a script, the time for executing the redundant process "cat" can easily add up to a noticeable delay.
"Oh no, it spawns another process!!" Again, nobody cares.