ulrik
Registered
OK, I don't know if this is possible, but I am sure that the UNIX guys here will be able to help me.
Correct me if I am wrong, but a pipe is used to redirect the standard out of a command. Now, if I pipe something into the standard in of another command, is there a possibility to get what is not piped?
Simple example:
ls -al / | grep System
In this case, the standard out would be only System...now is there a possibility to write the stuff NOT matching grep's string pattern into a file???
I need something similar (not with the LS command) for a logging action...
To make myself even more clear: I search a way to display the result of the grep command to the screen (as it is done in above example) while the rest (not matching "System") is piped into a different command. Possible???
any help is appreciated!!!
Correct me if I am wrong, but a pipe is used to redirect the standard out of a command. Now, if I pipe something into the standard in of another command, is there a possibility to get what is not piped?
Simple example:
ls -al / | grep System
In this case, the standard out would be only System...now is there a possibility to write the stuff NOT matching grep's string pattern into a file???
I need something similar (not with the LS command) for a logging action...
To make myself even more clear: I search a way to display the result of the grep command to the screen (as it is done in above example) while the rest (not matching "System") is piped into a different command. Possible???
any help is appreciated!!!