Neither of these work for me.
when I do a bash -x scriptname.sh
it gets to the grep and what is displayed is:
+ cat /home/virtual.....
+ grep
http://www.........
+ grep -v 11.11.11.11 '\|' grep -v 11.11.11.12 '\|' grep -v 1.1.1.1
grep: \|: No such file or directory
grep: grep: No such file or directory
grep: 11.11.11.12: No such file or directory
grep: \|: No such file or directory
grep: grep: No such file or directory
grep: 1.1.1.1: No such file or directory
Same response for the [12]
grep: [12]: No such file or directory
grep: grep: No such file or directory
grep: 11.11.11.12: No such file or directory
grep: [12]: No such file or directory
grep: grep: No such file or directory
grep: 1.1.1.1: No such file or directory
Looks like the first grep -v is working but all the rest are not due to the ' ' around the |, \|, and [12] that I have tried.