Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

An even briefer improvement on this would be to remove the whole script and just alias/function the whole thing.

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: