2015-09-02

MacOS - Executing/sending the contents of a file to an executable program

cat /path/filename.txt | executable_program_here


In this example, sending the contents of a .js file, to mongodb.
cat script.js | mongo



No comments:

Post a Comment