in reply to multiple regex logical AND
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!
lin0
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: multiple regex logical AND
by liverpole (Monsignor) on Dec 12, 2006 at 19:30 UTC | |
by MidLifeXis (Monsignor) on Dec 13, 2006 at 18:46 UTC |