I have a script that has a line like:
myprog | egrep -v ‘(this)|(that)|(theOtherThing)’
The deal is that I want to exclude lines that have certain strings in them.
This does work. But there are many certain strings. I tried to put this on
multiple lines like:
myprog | egrep -v
‘(this)|
(that)|
(theOtherThing)’
but when I do this, either the substring before or after the ‘’ character
is not properly recognized depending on if I break the line before or after
the or ‘|’.
How can I make this work across multiple lines? I just want to make the
file more readable.
I got it.
I just had to change my single quotes ’ to double quotes ".
Now it works.
I’m just used to using the most restrictive quoting possible. In this case
it was too restrictive.
“Bill Caroselli (Q-TPS)” <QTPS@EarthLink.net> wrote in message
news:abrugr$ols$1@inn.qnx.com…
I have a script that has a line like:
myprog | egrep -v ‘(this)|(that)|(theOtherThing)’
The deal is that I want to exclude lines that have certain strings in
them.
This does work. But there are many certain strings. I tried to put this
on
multiple lines like:
myprog | egrep -v
‘(this)|
(that)|
(theOtherThing)’
but when I do this, either the substring before or after the ‘’ character
is not properly recognized depending on if I break the line before or
after
the or ‘|’.
How can I make this work across multiple lines? I just want to make the
file more readable.