I'm trying to run the following command in Windows Server 2003 but sed creates a pile of files that I can't delete from the command line inside the current directory.
for /R %f in (*.*) do "C:\Program Files\gnuwin32\bin\sed.exe" -i "s/bad/good/g" "%f"
Does anyone have any suggestions? Mysteriously enough, I'm able to delete the files using Windows Explorer.
As requested, here are some example filenames:
- sed0E3WZJ
- sed5miXwt
- sed6fzFKh
And, more troubleshooting info...
- It occurs from both the command prompt & batch files
- If I just need to run sed on a single directory, then I use
sed "s/bad/good/g" *.*
and everything is OK. Alas, I also need it to tackle all the subdirectories. - I only have Sed installed.
- Sed is creating the files