lkml.org 
[lkml]   [1996]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Kernel Database [take 3]
On Mon, 22 Apr 1996, Shinanyaku wrote:

> Fellow Linux'ers.

Ok I mailed one to you. Here's some stuff I noticed:

first, it did _not_ create a file in /tmp/.
second, it did not run as-is... "no such file" from the shell...
why? The /usr/bin/perl^M is looking for a file called perl^M.

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)).

Anyway... if it seems like there's no replies to the database, it's probably
that people try it, it doesn't work, and they say to themself.. (I'll get
back to it later, he's still working on it.)

Cheers.

__kmb203@psu.edu_____________________________Debian/GNU__Linux__1.3.77___
So you think you know the real meaning of fear?
Yeah, you think you do know, but I doubt it.
When you sit in a shelter with bombs falling all over.
And the houses around you are burning like torches.
I agree that you experience horror and fright
For such moments are dreadful, for as long as they last,
But the all-clear sounds--then it's okay-- | -- Ilya Selvinskiy
You take a deep breath, the stress has passed by. | (Taken from "The Sum
But real fear is a stone deep down in your chest. | of All Fears" by
You hear me? A stone. That's what it is, no more. | Tom Clancy pg. 182.)



\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.277 / U:0.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site