Skip to content

Instantly share code, notes, and snippets.

@yannickcr
Created October 25, 2011 12:52
Show Gist options
  • Save yannickcr/1312638 to your computer and use it in GitHub Desktop.
Save yannickcr/1312638 to your computer and use it in GitHub Desktop.
Ack / Grep
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);
});
@yannickcr
Copy link
Author

Why ???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment