logoalt Hacker News

000ooo000today at 10:21 AM1 replyview on HN

What does it provide over

mycmd1 #| mycmd2


Replies

chriswarbotoday at 11:23 AM

Theirs "turns off" one element of a pipeline; yours turns off everything after a certain point.

This will output the stdout of mycmd1:

    mycmd1 #| mycmd2 | mycmd3
This will output the stdout of mycmd3:

    mycmd1 | \# mycmd2 | mycmd3
show 1 reply