If I execute this on Mac OS X 10.7.2 in the Terminal App:
$ cat test.txt | od -c
I get
0000000 t e s t 1 \n t e s t 2
0000013
That's the real content of my test.txt file. Ok.
But if I execute sed it adds a new line of each file.
$ sed 's/e/X/g' test.txt | od -c
0000000 t X s t 1 \n t X s t 2 \n
0000014
I don't want this new line. How can I fix this?