rice/eww/test.sh

9 lines
213 B
Bash
Raw Normal View History

2021-11-03 01:14:21 -07:00
#!/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"