I like to listen to sky.fm and I use curl to query media information

What I use right now is:

```
curl -s curl http://127.0.0.1:8080/requests/status.json | grep now_playing

```

This returns:

```
"now_playing":"Cody Simpson - On My Mind"

```

What I would like to have is:

```
Cody Simpson - On My Mind

```

Maybe even better, put the artist and title in separate variables.

```
artist: Cody Simpson
title: On My mind

```

Solution
--------

```
#!/bin/bash
a=`curl -s http://127.0.0.1:8080/requests/status.json | grep -Po '(?<=now_playing":")[^"]+'`
artist=$(echo $a | awk -F' - ' '{print $1}')
title=$(echo $a | awk -F' - ' '{print $2}')
echo $artist
echo $title

```