fork download
  1. #!/bin/bash
  2. link='<https://a...content-available-to-author-only...e.com/v1/monitor/zzsomeLongIdzz?access_token=xxSomeLongTokenxx==>; rel="monitor",<https://a...content-available-to-author-only...e.com/v1/services/xx/something-more/accounts/2345?access_token=xxSomeLongTokenxx==>; rel="parent"'
  3. re=",<([^>]+)>"
  4. my_url="test"
  5. if [[ $link =~ $re ]]; then my_url=${BASH_REMATCH[1]}; fi
  6. echo $my_url
Success #stdin #stdout 0s 5092KB
stdin
Standard input is empty
stdout
https://a...content-available-to-author-only...e.com/v1/services/xx/something-more/accounts/2345?access_token=xxSomeLongTokenxx==