Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Integrated command line math. Parent comment
For example, my .bash_profile contains:
function scrub { ps -ef |grep $1 | grep -v grep | awk '{print $2}' | xargs kill }
mostly because I was too lazy to install pkill, but I can just do `scrub tomcat` and it works.
Also, don't alias a script path. Just add the script to the path.
There are no comments on this comment yet.
For example, my .bash_profile contains:
function scrub { ps -ef |grep $1 | grep -v grep | awk '{print $2}' | xargs kill }
mostly because I was too lazy to install pkill, but I can just do `scrub tomcat` and it works.
Also, don't alias a script path. Just add the script to the path.