title: extract token from curl result by shell script
body: <p>I write this script</p>
  
  <pre><code>#!/bin/bash
  # cm.sh
  
    curl -i \
    -H "Content-Type: application/json" \
    -d '
  { "auth": {
      "identity": {
        "methods": ["password"],
        "password": {
          "user": {
            "name": "admin",
            "domain": { "id": "default" },
            "password": "secret"
          }
        }
      }
    }
  }' \
    "http://localhost/identity/v3/auth/tokens" ; echo
  
  
  
  echo $tokenizer1 
  echo $tokenizer2
  </code></pre>
  
  <p>But all of them(awk or sed) it's the same</p>
  
  <pre><code>  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
  100   540  100   312  100   228    312    228  0:00:01 --:--:--  0:00:01  5142
  </code></pre>
  
  <p>My goal is to put the token in a variable for later.
  Thanks guys in advance. </p>