Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
oandrew
· 4y ago · 0 comments
bash 4 supports `|&` as an alternative to `2>&1` which looks better in pipelines e.g.
$ docker logs container |& grep word
Comments
[–]
LanternLight83
4y ago
I was looking for this just the other day, but thought it would have been the other way around (&|, consistent with &>), and moved on with 2>&1 |