Skip to content

Instantly share code, notes, and snippets.

@valter-jnr
Created September 17, 2019 17:17
Show Gist options
  • Save valter-jnr/1c2e5b94da08d7ee3968aeaa000774de to your computer and use it in GitHub Desktop.
Save valter-jnr/1c2e5b94da08d7ee3968aeaa000774de to your computer and use it in GitHub Desktop.
Import CVS / TSV to mongo
tr ";" "\t" < /Users/admin/Desktop/NCM.csv | mongoimport --uri mongodb+srv://sigaProdServices:12SjJoTmpCxhuqMb@sigacluster0-9ifpv.mongodb.net/sigaProd --collection ncm --type tsv --headerline --drop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment