diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-06-30 19:21:29 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-06-30 19:21:29 -0400 |
commit | 57266bea1b5fd82c6cc199c538783306c668b661 (patch) | |
tree | 07da8db5c95c3a081e6afa20530666ff5e2c962e /urlkey2url |
initial commit
Diffstat (limited to 'urlkey2url')
-rwxr-xr-x | urlkey2url | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/urlkey2url b/urlkey2url new file mode 100755 index 0000000..5d0ec3d --- /dev/null +++ b/urlkey2url @@ -0,0 +1,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 |