fork(19) download
  1. #!/bin/bash
  2. s='{"running": 1, "finished": 3, "node_name": "L-2.local", "pending": 0, "status": "ok"}'
  3. echo $s | sed 's/.*"running":[[:space:]]*\([0-9]*\).*/\1/'
Success #stdin #stdout 0s 19632KB
stdin
Standard input is empty
stdout
1