Skip to content

Instantly share code, notes, and snippets.

@gustavoguichard
Created July 9, 2020 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gustavoguichard/6726b356001c01468281e81239aed418 to your computer and use it in GitHub Desktop.
Save gustavoguichard/6726b356001c01468281e81239aed418 to your computer and use it in GitHub Desktop.
ruby -F, -ane \
'puts $F[15].gsub(/"/, "") unless $F[15] !~ /\w+@\w+\.\w{2,5}/' \
~/Desktop/cadastros.csv > emails.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment