Skip to content

Instantly share code, notes, and snippets.

@m-esm
Last active July 11, 2019 11:52
Show Gist options
  • Save m-esm/fa3d784dfad3f40f49867abb919ec64a to your computer and use it in GitHub Desktop.
Save m-esm/fa3d784dfad3f40f49867abb919ec64a to your computer and use it in GitHub Desktop.
bash shell cheatsheet
# inline if
echo "result: $(if [ $(pgrep -c "myApplication^C -eq 1 ]; then echo "true"; else echo "false"; fi)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment