I tried a mongo export like this:
./mongodump --db local --collection lecturer 
and then I tried:
./mongodump --db  local --collection posts --out - >  lecturer .csv  
and I get the same error message: Syntax Error: syntax error (shell):1
- What's wrong with my code?
 - Where is the data stored if export successfully?