Writing a script to go through directories?
No script needed, just find
:
find /media/shamsad/1E8A00A88A007E91/ -name '*.json' \
-exec mongoimport --db twitter --collection twitterCol --file {} \;
No script needed, just find
:
find /media/shamsad/1E8A00A88A007E91/ -name '*.json' \
-exec mongoimport --db twitter --collection twitterCol --file {} \;