added an id randomizer for configs
This commit is contained in:
parent
9da6874eb1
commit
4d6ec44891
1 changed files with 3 additions and 0 deletions
3
randomize-ids.sh
Normal file
3
randomize-ids.sh
Normal 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' $@
|
Loading…
Reference in a new issue