Hi all,
How do I do this in perl command line???
I have SED script:
myvar="test"
cat a.txt|sed '/'$myvar'/ !s/.*MYSTR/#&/g'
What does it do is it will PUT '#' character in front of a whole line of strings that --> CONTAIN "MYSTR" <-- BUT
--> DO NOT CONTAIN "test" <--.
Please help, how do I do this in perl command line???
Thanks,
Suhaimi
How do I do this in perl command line???
I have SED script:
myvar="test"
cat a.txt|sed '/'$myvar'/ !s/.*MYSTR/#&/g'
What does it do is it will PUT '#' character in front of a whole line of strings that --> CONTAIN "MYSTR" <-- BUT
--> DO NOT CONTAIN "test" <--.
Please help, how do I do this in perl command line???
Thanks,
Suhaimi