Last active
June 24, 2020 19:58
-
-
Save atcasanova/bd330ebd43af4dfd72da5c7ac72a163d to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
while IFS=\; read nome email empresa telefone; do | |
filename="$(sha256sum <<< "$email"| cut -f1 -d" ").txt" | |
# montar o arquivo | |
echo "Nome: $nome | |
E-Mail: $email | |
Empresa: $empresa | |
Telefone: $telefone" > $filename | |
done < data.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment