why does grep in a script run in Cygwin not maintain columnar output from a text file when it's (grep's) output is redirected to another text file - say a list of x, y coordinates marked by x and y which it can separate to 2 files (one of x coords and the other of y coords with the xs and ys being removable by sed). Instead it outputs, what started as a column of numbers, as rows of space separated numbers? I tried the Cygwin website but there's too much bullshit to go through.
You can also consider filtering the input files with
If that doesn't solve the problem, please post some sample input and output.