summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2015-12-05 08:11:47 +0100
committerRasmus Steinke <rasi@xssn.at>2015-12-05 08:11:47 +0100
commit420c106c63d6c9be99c02f169c193f0510702dfe (patch)
tree671d5e7ed9ecb66ef62511923f56bb1d75c37671
parent60b2fa475d4dc1d27943d48f3810a64595e70fd6 (diff)
downloadperl-app-clerk-420c106c63d6c9be99c02f169c193f0510702dfe.tar.gz
perl-app-clerk-420c106c63d6c9be99c02f169c193f0510702dfe.tar.xz
remove redundant greps
-rwxr-xr-xclerk3
1 files changed, 1 insertions, 2 deletions
diff --git a/clerk b/clerk
index 768f7f0..7bee919 100755
--- a/clerk
+++ b/clerk
@@ -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 }')