summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2016-04-16 00:18:16 +0200
committerJonas Smedegaard <dr@jones.dk>2016-04-16 00:18:16 +0200
commit59bcce9b9a6d77046398c75a74eb5bbce2719d67 (patch)
treefc47fdc8e81ee0ac84397f3cf78519c150bfe2af
parent199aaedd8f9eabf4ce0cdb500b52d6a486bed8cd (diff)
Fix rewrite compactlist() to emit output as single line.
-rwxr-xr-xlocaldebpool2
1 files changed, 1 insertions, 1 deletions
diff --git a/localdebpool b/localdebpool
index 6c00243..6a7a2ab 100755
--- a/localdebpool
+++ b/localdebpool
@@ -19,7 +19,7 @@ debugprint() {
}
compactlist() {
- echo "$*" | perl -nlE "say for /(\S+)/g" | sort -u
+ echo "$*" | perl -0777 -ae 'print join " ", sort grep !$seen{$_}++, @F'
}
regexfromlist() {