Why? here's why:
1. if you use < by mistake with a file that is not ASCII you likely will sit and enjoy all this gibberish on a screen and /a beeps with no option to interrupt it as it is dumped directly to the sdout, pipelined cat gives you option for Ctl-C, to interrupt
2. I often don't know precisely what is a problem as I troubleshoot so I use different keys with a pipeline after cat as it saves typing, I don't have to move somewhere into middle line to edit variables.
3. I found this makes cleaner and more readable line for mere mortals who reside in "UNIX for Dummies" forum, as not everyone is "registered geek"
4. I know what is notion UUOC means but it is just another notion for a style for these people who got nothing to worry about but another notion. So let remove some commands from the systems at all. I personally don't care if I will create one more process. I didn't care about it ten years ago when computers had been some 20 times slower, and I certainly will not care today with 99% idle CPU time.
computer it is a tool to make my life more comfortable, not I exists to save it from extra exercise of spawning extra processes.
Quote:
Originally Posted by zazzybob
The good thing about that is we avoid the Useless Use of cat. Why spawn uneccessary processes?
Cheers
ZB