diff options
author | Rasmus Steinke <rasi@xssn.at> | 2015-12-05 08:11:47 +0100 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2015-12-05 08:11:47 +0100 |
commit | 420c106c63d6c9be99c02f169c193f0510702dfe (patch) | |
tree | 671d5e7ed9ecb66ef62511923f56bb1d75c37671 | |
parent | 60b2fa475d4dc1d27943d48f3810a64595e70fd6 (diff) | |
download | perl-app-clerk-420c106c63d6c9be99c02f169c193f0510702dfe.tar.gz perl-app-clerk-420c106c63d6c9be99c02f169c193f0510702dfe.tar.xz |
remove redundant greps
-rwxr-xr-x | clerk | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -839,9 +839,8 @@ songs () { seekMenu elif [[ $val -eq 21 ]]; then - temp=$(mpc playlist --format '%position%\t%file%' | grep -P "^${POS}\t" | grep "${ARTIST}" | grep "${TITLE}" | gawk -F '\t' '{ print $2 }') + temp=$(mpc playlist --format '%position%\t%file%' | grep -P "^${POS}\t" | gawk -F '\t' '{ print $2 }') info=$(mpc --format '%albumartist%\t%album%\t%date%\t%track%\t%title%' search filename "${temp}") - echo "${info}" ARTIST=$(echo "${info}" \ | gawk -F '\t' '{ print $1 }') |