diff --git a/bin/medium-short b/bin/medium-short new file mode 100755 index 0000000..098ceac --- /dev/null +++ b/bin/medium-short @@ -0,0 +1,12 @@ +#!/bin/bash + +function short() { + sed -r 's|/[^/]+-(.*)$|/\1|' +} + + +if [[ $# -eq 0 ]]; then + short +else + echo "$1" | short +fi