fork(1) download
  1. #!/bin/bash
  2. s="Text
  3. Version : 3.4.0.0 xxx xxx xxx
  4. More text
  5. Version : 5.6.0.0 xxx xxx xxx"
  6. awk '/^Version : [0-9]+/{print $3; exit}' <<< "$s"
Success #stdin #stdout 0s 23464KB
stdin
Standard input is empty
stdout
3.4.0.0