mirror of
https://github.com/ksyasuda/rice.git
synced 2024-11-22 03:19:58 -08: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"
|