mongo --nodb in the shell.
And of course the shell allows you to use loops, user functions and etc.:
You can also use the
cat function to read the file’s contents.
You may even explore global scope by executing
printjson(this) and find out the following functions:
Happy coding =]