How can one extract the exit code of a command? – unix.stackexchange.com

How can one extract the exit code of a command and use it in a condition? For example look at the following script: i=4 if [[ $i -eq 4 && $(command) -eq 0 ]] then echo "OK" ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "How can one extract the exit code of a command? – unix.stackexchange.com"