2 ms·
${PIPESTATUS[@]} for a space delimited list of all exit codes, or replace @ with the position in the pipe chain of the specific command you want. ps auxwww | g
by dylan604 5y ago
${PIPESTATUS[@]} for a space delimited list of all exit codes, or replace @ with the position in the pipe chain of the specific command you want.
ps auxwww | grep banana | grep -v grep && echo ${PIPESTATUS[1]}
type of thing