One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
/* | |
Recursively traverses all collections and objects/arrays contained within documents replacing every | |
instance of 'find' with 'replace'. | |
mongo <db_name> mongo_search_and_replace.js | |
*/ | |
function escapeRegExp(str) { | |
return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); | |
} |
# redirect output and errors into file output.log: | |
nohup some_command > output.log 2>&1& | |
# abbreviated syntax for bash version >= ver.4: | |
nohup some_command &> output.log |