Files
linux-workspace/bin/medium-short
T

13 lines
127 B
Bash
Executable File

#!/bin/bash
function short() {
sed -r 's|/[^/]+-(.*)$|/\1|'
}
if [[ $# -eq 0 ]]; then
short
else
echo "$1" | short
fi