|
|
|
|
|
by scarejunba
2419 days ago
|
|
I'm actually pretty much against UUoC. The cat example is much more resilient to modification. For instance, there are usually natural modifications considering filtering etc. Anyway, since he said number we probably want `nl` not `wc`. Separating pipe-setup from processing is sound engineering to me and makes things much easier. For instance as I iterate, I will have cat piped to head piped to filter but eventually I'll take the head out and run the whole thing. That's a trivial ^W versus moving around arguments and worrying about arg order, etc. |
|
However using the input redirect is fine, especially if you format it that way (which is exactly the same thing):
Then, adding another step is as natural as with cat: