Files
linux-workspace/bin/medium-short
2022-03-28 17:20:01 +02:00

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