title: Find a line without a keyword / in given pairs of lines
body: <p>Trying to filter a firewall security policy which doesn't have log enabled. </p>
  
  <p>I just GREPed the policy which provides the output of policies matching "both action and log settings". But I dont know any filtering mechanisms. </p>
  
  <pre class="lang-none prettyprint-override"><code>#zcat config.gz | egrep permit\|deny\|log | grep policy 
  set security policies from-zone Trust to-zone Untrust policy 44 then permit  
  set security policies from-zone Trust to-zone Untrust policy 44 then log session-init  
  set security policies from-zone Trust to-zone Untrust policy 34 then permit  
  set security policies from-zone Trust to-zone Untrust policy 34 then log session-init  
  set security policies from-zone Trust to-zone Untrust policy 82 then permit  
  set security policies from-zone Trust to-zone Untrust policy 82 then log session-init  
  set security policies from-zone Trust to-zone Untrust policy 82 then log session-close  
  set security policies from-zone Trust to-zone Untrust policy 73 then deny  
  set security policies from-zone Trust to-zone Untrust policy 73 then log session-close  
  set security policies from-zone Trust to-zone Untrust policy 72 then deny  
  set security policies from-zone Trust to-zone Untrust policy 72 then log session-close  
  set security policies from-zone Trust to-zone Untrust policy 67 then permit  
  set security policies from-zone Trust to-zone Untrust policy 53 then permit  
  set security policies from-zone Trust to-zone Untrust policy 53 then log session-init  
  set security policies from-zone Trust to-zone Untrust policy 30 then deny  
  set security policies from-zone Trust to-zone Untrust policy 30 then log session-close  
  set security policies from-zone Trust to-zone Untrust policy 75 then permit  
  set security policies from-zone Trust to-zone Untrust policy 75 then log session-init  
  set security policies from-zone Trust to-zone Untrust policy 76 then permit  
  set security policies from-zone Trust to-zone Untrust policy 28 then permit  
  set security policies from-zone Trust to-zone Untrust policy 28 then log session-init  
  set security policies from-zone Trust to-zone Untrust policy 50 then permit  
  set security policies from-zone Trust to-zone Untrust policy 50 then log session-init  
  set security policies from-zone Trust to-zone Untrust policy 51 then permit  
  set security policies from-zone Trust to-zone Untrust policy 51 then log session-init  
  set security policies from-zone Trust to-zone Untrust policy 55 then permit  
  set security policies from-zone Trust to-zone Untrust policy 55 then log session-init  
  set security policies from-zone Trust to-zone Untrust policy 56 then permit  
  set security policies from-zone Trust to-zone Untrust policy 79 then permit  
  set security policies from-zone Trust to-zone Untrust policy 79 then log session-init  
  set security policies from-zone Trust to-zone Untrust policy 57 then permit  
  set security policies from-zone Trust to-zone Untrust policy 57 then log session-init  
  set security policies from-zone Trust to-zone Untrust policy 58 then permit  
  set security policies from-zone Trust to-zone Untrust policy 58 then log session-init
  </code></pre>
  
  <p>I would like to know the policies which doesn't have log enabled. </p>
  
  <p>Example: 
  'policy 67' have only permit statement but not logged. 
  The policy name should be filtered out and displayed. </p>