PIPESTATUS Posted on 2019/10/25 by Carl Robitaille echo ${PIPESTATUS[@]} # Show the return values of each command in a pipeline as one string. Or use an index number for the Nth command.— Command Line Magic (@climagic) October 25, 2019