Created
October 25, 2011 12:52
-
-
Save yannickcr/1312638 to your computer and use it in GitHub Desktop.
Ack / Grep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var util = require('util'); | |
var exec = require('child_process').exec; | |
// Grep (ok) | |
exec("grep 'grep' test.js", function(){ | |
console.dir(arguments); | |
}); | |
// Ack (nok) | |
exec("ack 'ack' test.js", function(){ | |
console.dir(arguments); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why ???