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.
db.collectionname.find()
I tried db.collectionname.find() >> "test.txt" doesnt seem to work.
db.collectionname.find() >> "test.txt"