sajad torkamani

$? gives you the exit code for the last command.

Tagged: Bash

References (1)

Posts that link to this one.