I am trying to remove old files from the file system
The file list is maintained in mongoDb collection like so:
{
"_id" : ObjectId("59a39215953f77968789d692"),
"className" : "com.xerox.model.ModuleDocument",
"documentId" : "0000001643",
"documentDate" : ISODate("2017-05-11T04:00:00.000Z"),
"documentType" : "PRINTER_VALIDATION_2017",
"module" : "PRINTERS",
"printerId" : "1002563",
"origFileName" : "0000001643.JPG",
"isDeleted" : true
}
But when I query the DB using the mongo shell
db.getCollection('xerox_documents').find({"isDeleted":true})
The result is displayed as JSON, Is it possible to get the results in flat text format? The desired output is something like:
DEL c:\DOCS\PRINTERS\PRINTER_VALIDATION_2017\0000001643.JPG
DEL c:\DOCS\PRINTERS\PRINTER_VALIDATION_2017\0000001643.JPG