views:

136

answers:

1

I'm using sed for windows to do search and replace on some javascript files, and I was wondering if using some other utility I could make it work recursively.

+1  A: 

yes you can, either use a for loop coupled with dir /s, or you can use find for windows. eg

find c:\path -iname "*.txt" -exec sed "s/old/new/g" "{}" ;
ghostdog74
Yeah that did the trick (except for the -iname argument doesn't work) you have to type it more like:find . "*.js" -exec sed -i "s/old/new/g" ;
leeand00