fork download
  1. #!/bin/bash
  2. echo "instream(10.20.213.11@40266):" | \
  3. sed -E 's/(.*[^0-9]|^)([0-9]+(\.[0-9]+){3}).*/\2/'
  4. # => 10.20.213.11
Success #stdin #stdout 0.01s 5404KB
stdin
Standard input is empty
stdout
10.20.213.11