Skip to content

Instantly share code, notes, and snippets.

@metajiji
Created February 8, 2019 11:01
Show Gist options
  • Save metajiji/3ea85cba16b59ef7bfd932f79d8cdbce to your computer and use it in GitHub Desktop.
Save metajiji/3ea85cba16b59ef7bfd932f79d8cdbce to your computer and use it in GitHub Desktop.
bash

for e in $(seq 0 1000); do sh -c "exit $e"; echo $e:$?; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment