On Thu, Feb 22, 2001 at 10:24:01AM +0100, Mike Nordell wrote:
> >     find . -type f -name '*.c*' -exec sh -c "(echo '1,\$s/(XML_Char *\*)
> *\"/\"/g';echo wq)|ed {}" \; >/dev/null
> 
> But what about something like the following for win32?
You mean DOS.

>   for /r %i in (*.c) do type %i | sed <replacement expression> | %i.tmp &
> del %i & ren %i.tmp %i

Is sed a standard DOS tool?

Cywin is cheating :)

sed does the trick, but ed is nice becuase it edits files in place
meaning you don't have to play .tmp tricks.

Reply via email to