summaryrefslogtreecommitdiff
path: root/pc
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-12-05 20:22:20 +0100
committerJohn Ankarström <john@ankarstrom.se>2020-12-05 20:22:20 +0100
commit6f2f2a0a36366705104488b17912a0eb2f3b56de (patch)
treecbe0bf65e338ba45434b24bfeadcabaf45a047a8 /pc
parent90c33132ef723fec5f1ee29e740501df8606c5b6 (diff)
downloadpc-master.tar.gz
pl: Add -a (all) option, add optional interactive selectionHEADmaster
Diffstat (limited to 'pc')
-rwxr-xr-xpc2
1 files changed, 1 insertions, 1 deletions
diff --git a/pc b/pc
index 9d0c4dd..4cc57a3 100755
--- a/pc
+++ b/pc
@@ -4,7 +4,7 @@
curl -Ls "$@" |
sed -n '/<item>/,$p' |
-sed -e '/^$/d' -e 's/^[ ]*//' |
+sed '/^$/d; s/^[ ]*//' |
awk -vFS='[<>]' -vOFS=' ' '
/<pubDate>/ { date = $3 }
/<itunes:duration>/ { duration = $3 }