fork(2) download
  1. #!/bin/sh
  2.  
  3. STRING=$( cat <<EOF
  4. null},
  5. {" id ":2975220889," app _id":666666, null},
  6. {"id":2975220890,"app_id":666666, null},
  7. {" id ":2975220889," app _id":666666, null},
  8. {"id":2975220891,"app_id":666666,
  9. EOF
  10. )
  11. echo "$STRING" | grep -Po '(?<="id":)[^,]+'
Success #stdin #stdout 0s 5032KB
stdin
Standard input is empty
stdout
2975220890
2975220891