using the mpc search command I can find a the filename of a song like so:
mpc search title 'Two Weeks'
The output would look like this: Grizzly Bear - Two Weeks.mp3
Since I also know the location of the mp3 (MPD Music directory), I know how I could delete the file with another command. But I want to have a one-line command that finds and deletes a music file in my MPD directory.
rm "/path/to/MPD/Music/directory/$(mpc search title 'Two Weeks')"
? – Jeff Schaller♦ Mar 1 '16 at 18:59mpc search
. But yes I would have to be careful with that. – F. Untermoser Mar 1 '16 at 20:20