How can I pipe a command into the meteor shell?
问题 Let's say I have a few directories, each running a different branch of a Meteor development server. I could cd to each directory, run meteor shell , and type a command. And that's great for 2 or 3 directories, but what if I have 10? 100? Is there some equivalent of meteor shell < 'DoJSThing()` that I can script from the command line, so that I can use [1] for d in ./*/ ; do (cd "$d" && meteor shell "doJSThing()" ); done [1] source for bash for loop 回答1: On the latest Meteor (I'm currently