Skip to content

Instantly share code, notes, and snippets.

@atcasanova
Created June 24, 2020 20:05
Show Gist options
  • Save atcasanova/a2bdc740bb056b9d9d1167b4baf4bae3 to your computer and use it in GitHub Desktop.
Save atcasanova/a2bdc740bb056b9d9d1167b4baf4bae3 to your computer and use it in GitHub Desktop.
#!/bin/bash
IFS=\; read nome email empresa telefone <<< "$1"
filename="$(sha256sum <<< "$email"| cut -f1 -d" ").txt"
echo "Nome: $nome
E-Mail: $email
Empresa: $empresa
Telefone: $telefone" > $filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment