Can sed be recursive for windows?
I am using sed on windows to do search and replace on some javascript files and I was wondering if using any other utility I could get it to work recursively.
+2
a source to share
1 answer
yes you can either use a loop for
in combination with dir /s
or you can use find for windows . eg,
find c:\path -iname "*.txt" -exec sed "s/old/new/g" "{}" ;
+4
a source to share