Created
March 17, 2020 03:18
-
-
Save gardner/572564f01d55e74e315b7318ddf59f98 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
for name in $(ls *.conf | awk -F '.' '{ print $1 }'); do | |
pass=$(pwgen -1 32) | |
7za a ${name}.zip ${name}.conf -p${pass} | |
echo $pass > ${name}.txt | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment