Makes Meidum.com url shorter

This commit is contained in:
Martin Blazik
2022-03-19 10:50:56 +01:00
parent 8588f83359
commit 0102056590

12
bin/medium-short Executable file
View File

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