Results 1 to 1 of 1
I am having a problem I can't seem to figure out. I am trying to manipulate a file to create another file using cut, awk, and tr. I am doing ...
- 06-21-2007 #1
piping output ignores end of line
I am having a problem I can't seem to figure out. I am trying to manipulate a file to create another file using cut, awk, and tr. I am doing something like this
cut -d ' ' -f2 file1 > file 2
and it ignores the end of my line I get very scattered results.
If I do
cut -d ' ' -f2 file1
and get the output to the screen it gives me the results I want and still has all the contents on the correct line, but as soon as I pipe it the output seems to not recognize the end of the line and I get lots of detail not in the sections I want. I am using other commands with tr and awk but they do the same thing, stdout gives me what I want, but as soon as I pipe it everything breaks.
Any help is appreciated.


Reply With Quote