added an id randomizer for configs

This commit is contained in:
Yann Esposito 2015-04-08 10:43:53 +02:00
parent 9da6874eb1
commit 4d6ec44891

3
randomize-ids.sh Normal file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
perl -pi.bak -e 's/"id": "[^"]*"/"\"id\": \"". (join "", map { ("a" .. "f", 0 .. 9)[rand(16)] } 1 .. 40) . "\""/eg' $@