Re: Kernel Database [take 3] (fwd)

Atakan Gurkan (agurkan@newton.physics.metu.edu.tr)
Mon, 29 Apr 1996 10:10:18 +0300 (EET DST)


---------- Forwarded message ----------
Date: Sun, 28 Apr 1996 02:35:24 -0400 (EDT)
From: Kevin M Bealer <kmb203@psu.edu>

In other words, there was a CR attached to every line of the file.
I have written a tiny C program which strips them off and I used it on your
file... then it worked.

If you want the program, here it is:

--
#include<stdio.h>
main(){char c; while(EOF!=(c=getchar())){if(c!=13)putchar(c);}}
--

This could be optimized, (but who cares) and there are certainly Linux utilities somewhere which already do this (but isn't it cute (cough)).

Galiba buna yakin bir program icin bir istek olmustu. Program stdin ve stdout kullaniyor gibi gozukuyor, ama ben denemedim.

sevgi, saygi, T.L.A. ... Atakan