DEV Community

Discussion on: Shell Pipe Wrapper Functions

Collapse
 
thefluxapex profile image
Ian Pride • Edited

But my prototype method allows all kinds of extra logic processing and I don't like using xargs.

Collapse
 
taikedz profile image
Tai Kedzierski • Edited

If personal preference, fair, but at that point it's no longer "generic" 😉

Seizing the input from keyboard whilst within a pipe by using read -u 1 merits a more significant callout though, that's handy to know...!

Thread Thread
 
thefluxapex profile image
Ian Pride • Edited

Fair enough on the `no longer "generic", but I usually don't add too much extra and tend to add these functions in my hybrid script/function method so it's a bit more portable for me. Certainly preference though, was just providing alternatives. Appreciate the feedback.