diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-06-30 20:05:23 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-06-30 20:05:23 -0400 |
commit | e46a74fe8a143936eee2b9be1fd6b5f963357d9d (patch) | |
tree | 457e959fc8bcdf1222092a29435e468c824bb697 /bin/urlkey2url | |
parent | 57266bea1b5fd82c6cc199c538783306c668b661 (diff) |
work on it
Diffstat (limited to 'bin/urlkey2url')
-rwxr-xr-x | bin/urlkey2url | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/urlkey2url b/bin/urlkey2url new file mode 100755 index 0000000..5d0ec3d --- /dev/null +++ b/bin/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 |