Locating files and directing ouput

I'm trying to locate all files that do not contain the string /usr but do contain the string csh within the file called /etc/passwd. Then I would like to direct this output to a file called pout.

Does anyone one have suggestions on this one?

Thanks

How about:

grep csh /etc/passwd > filename

I think that's what your were asking. -mk

Try this instead...

cat /etc/passwd | grep "/usr" | grep -v "csh" > pout 2> /dev/null