You're viewing a comment by Sarah Duncan and its responses.

Sarah Duncan Permalink
February 17, 2012, 17:43

This is great! I love it. I'm wondering if you know the answer to a question that's been driving me nuts since switching to bash from tcsh. In tcsh, I can do this:
alias psit 'ps -ef | grep \!* | grep -v grep'
and use it to search for a process:
psit ora
will search for all processes with ora in them, for example. \!* gets me * for the current command line. I can't figure out how to use command line substition on arguments to the current command line in bash. Do you know of a way to do this?

Comment Responses

June 14, 2012, 18:37

You can use a function instead:
ps -ef | grep "$@" | grep -v grep

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "halflife3_42": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.