in nawk can u do
a
if pattern1 and pattern2 found and not pattern4 and pattern5 are present;
print something..
so far i have
if ( /pattern1/ || /pattern2/ ) && ( ! /pattern3/ ) ...
this doesnt seem to work..
basically im trying to find pattern1 and 2.. but if pattern3 and 4 are also present then ignore it.. kinda like grepping for pattern1 and pattern2 but grep -v pattern3 and 4 out of it.. thanks in advance..
a
if pattern1 and pattern2 found and not pattern4 and pattern5 are present;
print something..
so far i have
if ( /pattern1/ || /pattern2/ ) && ( ! /pattern3/ ) ...
this doesnt seem to work..
basically im trying to find pattern1 and 2.. but if pattern3 and 4 are also present then ignore it.. kinda like grepping for pattern1 and pattern2 but grep -v pattern3 and 4 out of it.. thanks in advance..