#!/bin/bash song=$(mpc --format "%position%\t%artist%\t%title%" playlist | sort | column -s" " -t | fzf) if [ "$song" == "" ] then exit fi mpc play $(echo $song | awk '{print $1}')