How do I export the results of a MongoDB command to a flat file
For example, If I am to get db.collectionname.find()
into a flat file.
I tried db.collectionname.find() >> "test.txt"
doesnt seem to work.
How do I export the results of a MongoDB command to a flat file
For example, If I am to get db.collectionname.find()
into a flat file.
I tried db.collectionname.find() >> "test.txt"
doesnt seem to work.
Use this