11-29-2009
6,402,
678
Join Date: Mar 2008
Last Activity: 8 June 2016, 9:58 PM EDT
Posts: 6,402
Thanks Given: 288
Thanked 678 Times in 647 Posts
UUOC police
On my tests the blunt use of "cat" and pipe runs quicker and is easier to follow in scripts than when some well known applications read the file directly. One such application is "awk".
The UUOC argument makes some sense where a shell read providing direct input to a shell command could replace a "cat" to pipe. It makes no sense when the application is less efficient at reading data than "cat".
Last edited by methyl; 11-29-2009 at 08:37 PM..
Reason: Withdraw Reverse Polish Notation quote because too sarcastic.