I have the two perl command
perl -pe "s/\b$a\b/$b/g if m/param1 /" test
perl -pe "s/\b$a\b/$b/g unless /^#/" test
how to use combine the if m/somthing/ and the unless /something/
[[email protected] tmp]# perl -pe "s/\b$a\b/$b/g if m/param1/ unless /^#/" test syntax error at -e line 1, near "m/param1/ unless"
but its now work THX
© Stack Overflow or respective owner