mirror of
https://github.com/ksyasuda/rice.git
synced 2024-10-28 09:04:10 -07:00
9 lines
213 B
Bash
9 lines
213 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
teststr=$(mpc current -f "%file%")
|
||
|
echo "$teststr"
|
||
|
artist=$(echo "$teststr" | awk -F "/" '{print $1}')
|
||
|
album=$(echo "$teststr" | awk -F "/" '{print $2}')
|
||
|
|
||
|
echo "ARTIST: $artist ALBUM: $album"
|