Is there a script/program/utility already available for the following requirement in a optimised way?
someCommand |
tee >(grep "pattern" > LinesWhichMatch) |
grep -v "pattern" > LinesWhichDoesNotMatch
|
Is there a script/program/utility already available for the following requirement in a optimised way?
|
||||
|
|
|
You could use
|
|||||||||
|
|
Here is a
|
||||
|
|
|
You can append files in awk:
or shorter:
|
|||
|