Created
June 24, 2015 14:03
-
-
Save zeisss/ec2e8b69279154386a20 to your computer and use it in GitHub Desktop.
etcdctl move mv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
etcdctl ls /path/api/ --recursive|xargs -I{} echo 'A="$(etcdctl get {})" && etcdctl set $(echo {}|sed s/api/othername/) "${A}"; unset A' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment