diff options
author | Erich Eckner <git@eckner.net> | 2020-03-05 11:58:17 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-03-05 11:58:17 +0100 |
commit | fc328e893b128f67ffeae43b86016fd4e97149e0 (patch) | |
tree | 945dd7322177e2bb57d485271b09c968edbd7bf5 | |
parent | b4dced98b973bac8194b876227947be08c321a41 (diff) | |
download | dmarc-aggregate-viewer-master.tar.xz |
bin/extract-attachment: remove spaces *after* replacing them by "_" - this way, we also get "\r" and alikeHEADmaster
-rwxr-xr-x | bin/extract-attachment | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/extract-attachment b/bin/extract-attachment index 1411270..ccb95a3 100755 --- a/bin/extract-attachment +++ b/bin/extract-attachment @@ -68,11 +68,11 @@ for end in ${borders}; do d ' \ | tr -d '"/' \ + | tr '[:space:]' '_' \ | sed ' - s/^\s\+// - s/\s\+$// + s/^_\+// + s/_\+$// ' \ - | tr '[:space:]' '_' \ | sort -u ) |