fork download
  1. #!/bin/bash
  2. s="optimization and architecture
  3. optimization and policy
  4. optimization and network
  5. optimization and awk
  6. no words"
  7. awk '/optimization/ && /architecture|policy|network/' <<< "$s"
Success #stdin #stdout 0s 23464KB
stdin
Standard input is empty
stdout
optimization and architecture 
optimization and policy 
optimization and network