Happy Wednesday everyone, I'm pleased to announce gsub[1]! This minute command-line utility is designed to recursively search any directory and replace all occurrences of the pattern substituted for the second argument.
You'll need to have `sed` and `find` available for child_process.exec() Then, simply `npm -g install gsub`. Here's a short example to replace the 'sys' module with 'util': `gsub -n "*.js" sys util` See `gsub --help` for more info. Usage: * [options] <find> <replace> Options: -h, --help output usage information -V, --version output the version number -d, --delimiter [delimiter] Delimiter for the regular expression, defaults to "#". -p, --path [path] Starting point to search from recursively, defaults to ".". -n, --name [pattern] File name pattern, defaults to "*". 1: http://github.com/zzak/gsub -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en