corrected the missing " and tried this (this file has the 2 params set to what I'm searching for)
perl -nle 'print $ARGV if !$seen{$ARGV}++ ;print if /^JRECOV="yes"/&&/^TEOJ="-w"/' ss1lab02
AND
perl -n00 -le 'print $ARGV if !$seen{$ARGV}++ ;print if /^JRECOV="yes"/ms &&/^TEOJ="-w"/ms' ss1lab02
Neither is returning the lines (filename is returned)
In reply to Re^2: multiple regex logical AND
by bigswifty00000
in thread multiple regex logical AND
by bigswifty00000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |