Get the exit code in a series of pipes in Bash
– twitter.com – Edit
TIL: $PIPESTATUS lets you access the exit code of a command used in a series of pipes in Bash pic.twitter.com/eRVrPQwnve
— Mattias Geniar (@mattiasgeniar) January 2, 2019
Read more [twitter.com]