You're viewing a comment by Sarah Duncan and its responses.
You're viewing a comment by Sarah Duncan and its responses.
I am being sponsored by Syntress since 2007! They bought me an amazing dedicated server to run catonmat on. If you're looking web services in Chicago area, I highly recommend the Syntress guys!
I love to read science books. They make my day and I get ideas for awesome blog posts, such as Busy Beaver, On Functors, Recursive Regular Expressions and many others.
Take a look at my
Amazon wish list, if you're curious about what I have planned reading next, and want to surprise me. :)


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?
Thanks!
Comment Responses
You can use a function instead:
psit()
{
ps -ef | grep "$@" | grep -v grep
}
Reply To This Comment