This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# write the path here | |
dir="" | |
# Set the array to store file contents | |
contents=() | |
# Use the find command to locate all .java and .py files in the directory tree | |
while IFS= read -r -d '' file; do | |
# Read the contents of the file and add them to the array |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.Purchases.updateMany( | |
{}, | |
[{"$set":{"<fieldName>":{"$toDate":"$<fieldName>"}}}] | |
); |