Last active
March 23, 2017 18:10
-
-
Save thiagoh/2c4bd034959fcab95125a09325019eaf to your computer and use it in GitHub Desktop.
bash util commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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