Thank you, the syntax is tricky...
Originally Posted by b49P23TIvg
What if I wanted to use it as follows:
content of newfile:
this line has blue in it
this line also has blue in it
This still does not work. There is no output. However, if I hardcode this in the the Popen with the acatual values instead or varialbles it work file.
command='cat newfile |grep -i var1 |grep -v var1'
Would appreciate any extra help.