fork download
  1. #!/bin/bash
  2. s='A ((!(A1+A2)))
  3. B (A1A2)
  4. C (A1+A2)
  5. D (!(A1+A2)B1)
  6. E (!A1+!A2)
  7. F (!(!A1!A2)+A3+A4)
  8. G ((A1!A2)B1)'
  9. awk '$2 ~ /!\</' <<< "$s"
Success #stdin #stdout 0s 5044KB
stdin
Standard input is empty
stdout
E  (!A1+!A2)
F  (!(!A1!A2)+A3+A4)
G  ((A1!A2)B1)