Skip to content

Instantly share code, notes, and snippets.

@atcasanova
Last active June 24, 2020 19:58
Show Gist options
  • Save atcasanova/bd330ebd43af4dfd72da5c7ac72a163d to your computer and use it in GitHub Desktop.
Save atcasanova/bd330ebd43af4dfd72da5c7ac72a163d to your computer and use it in GitHub Desktop.
#!/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