fork(2) download
  1. #!/bin/bash
  2. echo "Version: 4.4.0.157.165" | sed -E 's/.*Version: ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\.[0-9]+/\1/'
  3. sed -E 's/.*Version: ([0-9]+(\.[0-9]+){3})\.[0-9]+/\1/' <<< "Version: 4.4.0.157.165"
Success #stdin #stdout 0s 4396KB
stdin
Standard input is empty
stdout
4.4.0.157
4.4.0.157