Skip to content

Instantly share code, notes, and snippets.

@thiagoh
Last active March 23, 2017 18:10
Show Gist options
  • Save thiagoh/2c4bd034959fcab95125a09325019eaf to your computer and use it in GitHub Desktop.
Save thiagoh/2c4bd034959fcab95125a09325019eaf to your computer and use it in GitHub Desktop.
bash util commands
# kill a specific process
$ ps aux | grep $process_to_kill_name | tr -s ' ' | cut -d ' ' -f2 | xargs kill -9
# read a specific $gist_nth gist
$ gist --list | head -n $gist_nth | cut -d ' ' -f1 | rev | cut -d '/' -f1 | rev | xargs gist -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment