the logical AND is &&. Please, see Operators: arithmetic and otherwise
Using a logical AND, your code should read:
perl -nle 'print $ARGV if !$seen{$ARGV}++ ;print if /^JRECOV="yes"/&&/ +^TEOJ=-w"/'
Cheers!
lin0In reply to Re: multiple regex logical AND
by lin0
in thread multiple regex logical AND
by bigswifty00000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |