'mongodb': how to retrieve values from an object in shell script
I use a shell script to query MongoDB: #!/bin/bash mongoexport -d db -c collection -f Id I have: { _id: ObjectId("641e883ec0a3fde195b59019"), Id: '12027311490' }, { _id: ObjectId("641e8845c0a3fde195b5901b"), Id: '15400490185' }, { _id: ObjectId("641e884dc0a3fde195b5901d"), Id: '775662862079' }, { _id: ObjectId("641e8852c0a3fde195b5901f"), Id:…