windowssedquoting

Sed output not redirected to a file


I try:

C:\Users\me\Documents\worknotes\performance\tomcatlogs\livesite\learn>sed
 -e 's/"//g' local07.csv > local07nq.csv

But instead of outputting to the file local07nq.csv it outputs to the console. What's wrong?

I am using sed / cygwin / windows.


Solution

  • Quotes in Windows command prompts (at least the flavors I have used) are often problematic. You will probably be better off by putting the script (s/"//g) in a file and running it that way:

    sed -f myscript.sed local07.csv > local07nq.csv