Guest User

Untitled

a guest
Jan 23rd, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. cat testemails | awk 'BEGIN{FS=OFS="|"} {printf("%s ",$1); print `print $1|shasum -a 256` }'
  2.  
  3. cat shasum256.sh
  4. #!/bin/sh
  5. shasum256()
  6. {
  7. x=`print $1|shasum -a 256|awk '{print $1}'`
  8. return x
  9. }
  10.  
  11. cat shasum.sh
  12. #!/bin/sh
  13. cat TestEmail.dat | awk 'BEGIN{FS=OFS="|"} {printf("%s ",$1); system(". shasum256.sh;shasum256 " $2)}' > TestEmailHash.dat
Add Comment
Please, Sign In to add comment