fork(1) download
  1. #!/bin/bash
  2.  
  3. line="1234 abc xyz 5678"
  4. word="1234"
  5.  
  6. if [[ "$line" == *"$word"* ]]
  7. then
  8. echo "found"
  9. else
  10. echo "not found"
  11. fi
Success #stdin #stdout 0.02s 5312KB
stdin
Standard input is empty
stdout
found