When doing command line thingys, sed allows one to do really cool stuff like:
Long way:
sed 's/^something/something else/' | sed 's/^morestuff$/othermorestuff/'
Short way:
sed -e 's/^something/something else/' -e 's/morestuff$/othermorestuff/'
The Short way speeds up multiple changes by eliminating the pipe (which creates natural overhead).
So, now having said this, is there a way to do this with grep?
For example, what I would like to do is (in the Linux kernel code):
grep --color -rI kmalloc . | grep -v return | grep -v '=[<space><tab>]*kmalloc' . . .
but in one line.
Any ideas?