When doing command line thingys, sed allows one to do really cool stuff like:
sed 's/^something/something else/' | sed 's/^morestuff$/othermorestuff/'
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.