fork(2) download
  1. #!/bin/bash
  2. echo '192.168.1.1 foobar' | grep -E '([0-9]{1,3}\.?){4}'
  3.  
Success #stdin #stdout 0s 19632KB
stdin
Standard input is empty
stdout
192.168.1.1 foobar