fork(45) download
  1. #!/bin/bash
  2. json='{"data": {"name": "test", "id": "4dCYd4W9i6gHQHvd", "domains": ["www.test.domain.com", "test.domain.com"], "serverid": "bbBdbbHF8PajW221", "ssl": null, "runtime": "php5.6", "sysuserid": "4gm4K3lUerbSPfxz", "datecreated": 1474597357}, "actionid": "WXVAAHQDCSILMYTV"}'
  3.  
  4. echo $json | grep -o '"id": "[^"]*' | grep -o '[^"]*$'
Success #stdin #stdout 0.01s 5304KB
stdin
Standard input is empty
stdout
4dCYd4W9i6gHQHvd