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
? – steeldriver May 06 '17 at 11:44~
. Some additional details about it: https://askubuntu.com/questions/516702/is-the-tilde-considered-to-be-a-relative-path – edwinksl May 06 '17 at 11:51