summaryrefslogtreecommitdiff
path: root/urlkey2url
blob: 5d0ec3d798956f052a28f4e27e41fd42b5e88c66 (plain)
1
2
3
4
5
6
7
8
#!/usr/bin/env bash

for arg in "$@"; do
	keydomain="${arg%%)*}"
	keypath="${arg#*)}"
	domain="$(IFS=,; printf '%s\n' $keydomain|tac|xargs|tr ' ' '.')"
	echo "$domain$keypath"
done