Originally posted by: Runevitki
If all you are trying to do is take the sysout from grep and "copy" it to a file...
ls -l | grep -v RINT > test\NameOfFile
If you want to copy it to a file AND sysout
ls -l | grep -v RINT | tee test\NameOfFile
Hopefully this is what you wanted, and there are likely a multitude of ways to do this using other commands.