I would like to remove some documents of mongo database from shell script file by using some query.
I use the following command, but this doesn't work.
mongo dbName --eval "db.collection.remove({"param1":"value"})"
How should I delete the documents from mongo database from shell script by command line ??
", the bash script is being confused, try something like"db.collection.remove({param1:'value'})"