Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.linux.slackware > #26030
| Newsgroups | alt.os.linux.slackware, comp.os.linux.misc, alt.os.linux.debian |
|---|---|
| Subject | Re: grep in non linux EOL? |
| References | <n5n68j$ft6$1@dont-email.me> <n5r0fb$hdq$1@speranza.aioe.org> <n5r296$d94$1@news.albasani.net> |
| From | floyd@apaflo.com (Floyd L. Davidson) |
| Organization | __________ |
| Date | 2015-12-28 04:05 -0900 |
| Message-ID | <871ta6wwnx.fld@barrow.com> (permalink) |
Cross-posted to 3 groups.
The Natural Philosopher <tnp@invalid.invalid> wrote:
>On 28/12/15 09:47, Doug Laidlaw wrote:
>> no.top.post@gmail.com Wrote in message:
>>> It's OK if you want to donate your much-better-version.
>>> But what I really need to know is the REASONING BEHIND
>>> why my version fails.
>>>
>>> With dir-trees having mixed-format text-files: 3 types:
>>> *nix, DOS, EOL=x0d, I need to find files containing a string: $1
>>> Testing LEOfind:-
>>> #!/bin/bash
>>> find /sa5/Legal/CIPC -exec grep "$1" {} \; 2>/dev/null | fold | grep $1
>>> with ./LEOfind Gates , gives me also some lines which do NOT contain
>>> "Gates".
>>> Surely `<any command> | grep Gates`
>>> must consist of lines, each containing "Gates"
>>>
>>> ==TIA.
>>>
>>>
>>
>> Your "grep Gates" may be looking at one big long line that
>> displays word-
>> wrapped, but really isn't.
>>
>> The concepts involved do puzzle me, but I can use them.
>>
>> What does a typewriter do? It goes to the next line (that is <LF> )
>> and the carriage goes back (that is <CR> ). Those two codes
>> are used together only in Windows. In Linux and the
>> Mac, only one marks the end-of-line, but both happen.
>>
>It all harks back to the days of teletypes and mecahnical printers.
>
>By the time UNIX was developed, CRT displays and monitors were common place.
In 1969??? Not at all. UNIX was developed using
teletype machines printing on paper for IO. And
incidentally, UNIX did not invent the idea of using a
single character for a newline, the Teletype Corporation
did!
This URL has a picture of Ken Thompson and Dennis Ritchie
working with UNIX on a PDP-11 at Bell Labs.
https://en.wikipedia.org/wiki/Ken_Thompson#/media/File:Ken_Thompson_(sitting)_and_Dennis_Ritchie_at_PDP-11_(2876612463).jpg
>DOS owes its heritage to CP/M and that harks back in
>turn to I think an INTEL operating system used on their
>8080 development platform
CP/M was developed on Intel hardware, and the reason
for developing it was a total lack of any kind of
an OS. Gary Kildall came up with CP/M in 1973. He
offered it to Intel, but they were not interested
because they were working on an OS of their own.
Note that there is a significant distinction in what
UNIX and CP/M were intended for. UNIX was a research
project to develop a multi-user fully functional OS on a
"small" *computer* the size of several racks of equipment.
CP/M was meant to provide the absolute bare minimum of
management for a single user working with a *device*
*controller* to simulate some functions of a "real"
computer. It all sat on a desktop, and the true marvel
was that an 8080 device controller could do anything
useful at all!
Intel did not see their device controllers as "micro
computers". A group of engineers broke off and formed
Zilog to do just that. Intel continued to produce
device controllers right up to the 80186. The 80286
was the first nod to a computer, and the 80386 was
their first "real" computer chip.
--
Floyd L. Davidson http://www.apaflo.com/
Ukpeagvik (Barrow, Alaska) floyd@apaflo.com
Back to alt.os.linux.slackware | Previous | Next — Previous in thread | Find similar | Unroll thread
grep in non linux EOL? no.top.post@gmail.com - 2015-12-26 23:01 +0000
Re: grep in non linux EOL? Rich <rich@example.invalid> - 2015-12-27 05:19 +0000
Re: grep in non linux EOL? no.top.post@gmail.com - 2015-12-29 20:05 +0000
Re: grep in non linux EOL? no.top.post@gmail.com - 2015-12-30 02:05 +0000
Re:grep in non linux EOL? Doug Laidlaw <laidlaws@hotkey.net.au> - 2015-12-28 20:31 +1100
Re:grep in non linux EOL? Doug Laidlaw <laidlaws@hotkey.net.au> - 2015-12-28 20:47 +1100
Re: grep in non linux EOL? The Natural Philosopher <tnp@invalid.invalid> - 2015-12-28 10:18 +0000
Re: grep in non linux EOL? floyd@apaflo.com (Floyd L. Davidson) - 2015-12-28 04:05 -0900
csiph-web