blob: 813e66f14c536e558db7c63c48d4c87ac6b40a2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/env bash
# Copyright (c) 2017 Luke Shumaker <lukeshu@lukeshu.com>
#
# This work is free. You can redistribute it and/or modify it under
# the terms of the Do What The Fuck You Want To Public License,
# Version 2, as published by Sam Hocevar. See the COPYING file for
# more details.
for arg in "$@"; do
keydomain="${arg%%)*}"
keypath="${arg#*)}"
domain="$(IFS=,; printf '%s\n' $keydomain|tac|xargs|tr ' ' '.')"
echo "$domain$keypath"
done
|