// You can compile the following program
// Compile: gcc -o format format.c
//Usage: cat filename | format > newfilename
// file name: format.c
#include <stdio.h>
int main()
{
char in[2];
int flag = 0;
while (read(0, in, 2) > 0)
{
if (!((0xD == in[0])
&& (0xD == in[1])))
{
putchar(in[0]);
}
putchar(in[1]);
}
return 0;
}