find /media/shamsad/1E8A00A88A007E91/ -name '*.json' \
-exec mongoimport --db twitter --collection twitterCol --file {} \;
The above script was working perfectly but the below one is generating an error:
find /Desktop/L3T1/DatabaseSessional/TestMongotweet/ -name '*.json' \
-exec mongoimport --db twittersmall --collection twitterdata --drop --file {} \;
Error:
find: ‘/Desktop/L3T1/DatabaseSessional/TestMongotweet/’: No such file or directory
Is there a whitespace problem?
/Desktop
? or should that be~/Desktop
?~
. Some additional details about it: askubuntu.com/questions/516702/…