Re: The joy of pipes

Liste des GroupesRevenir à col misc 
Sujet : Re: The joy of pipes
De : * (at) *nospam* eli.users.panix.com (Eli the Bearded)
Groupes : comp.os.linux.misc
Date : 15. Nov 2024, 07:41:40
Autres entêtes
Organisation : Some absurd concept
Message-ID : <eli$2411150141@qaz.wtf>
References : 1 2 3 4
User-Agent : Vectrex rn 2.1 (beta)
In comp.os.linux.misc, John Ames  <commodorejohn@gmail.com> wrote:
Eli the Bearded <*@eli.users.panix.com> wrote:
Okay, I give up.
1. How does that relate to EBCDIC?
(I think it was a topic shift to applications of *nix pipes...?)

Traditional Unix "spell", which merely outputs words not recognized
without context or even line numbers, is an application of pipes.

Roughly like this:

--8<---------------cut here---------------start------------->8---
cat ~/.spell.words /usr/dict/words 2>/dev/null |
  tr A-Z a-z  |
  tr -dc a-z'
  ' |
  grep '[a-z]' |
  SPELLSTEMTOOL |
  sort -u > $TMPFILE_A

< $INPUT_FILE tr -s ' ^I!$&()_+[]{}:l"'\''\.,?/-' '
' |
  tr A-Z a-z  |
  tr -dc a-z'
' |
  grep '[a-z]' |
  sort -u > $TMPFILE_B

comm -13 $TMPFILE_A $TMPFILE_B
--8<---------------cut here---------------end--------------->8---


Where SPELLSTEMTOOL is a heuristic that tries to make "try" into "tries"
and related dictionary fixes to compensate for the words file not having
all the variants. (These days it is /usr/share/dict/words but also
these days traditional spell is hard to find. Gnu spell is different.)

Elijah
------
or maybe the stem tool worked on file B in the other direction

Date Sujet#  Auteur
9 Nov 24 * The joy of octal66Chris Ahlstrom
11 Nov 24 `* Re: The joy of octal65John Ames
11 Nov 24  +* Re: The joy of octal49Chris Ahlstrom
12 Nov 24  i+* Re: The joy of octal47Chris Ahlstrom
12 Nov 24  ii`* Re: The joy of EBCDIC46John Ames
12 Nov 24  ii +* Re: The joy of EBCDIC3Chris Ahlstrom
12 Nov 24  ii i`* Re: The joy of EBCDIC2candycanearter07
13 Nov 24  ii i `- Re: The joy of EBCDIC1Chris Ahlstrom
14 Nov 24  ii `* Re: The joy of EBCDIC42Fritz Wuehler
14 Nov 24  ii  `* Re: The joy of EBCDIC41Clemens Schüller
15 Nov 24  ii   `* Re: The joy of EBCDIC40Eli the Bearded
15 Nov 24  ii    `* Re: The joy of pipes39John Ames
15 Nov 24  ii     +* Re: The joy of pipes37Lawrence D'Oliveiro
15 Nov 24  ii     i`* Re: The joy of pipes36186282@ud0s4.net
15 Nov 24  ii     i +- Re: The joy of pipes1John Ames
16 Nov 24  ii     i +- Re: The joy of pipes1Lawrence D'Oliveiro
16 Nov 24  ii     i +* Re: The joy of pipes2Robert Riches
16 Nov 24  ii     i i`- Re: The joy of pipes1Lawrence D'Oliveiro
16 Nov 24  ii     i +* Re: The joy of pipes4186282@ud0s4.net
16 Nov 24  ii     i i`* Re: The joy of pipes3rbowman
16 Nov 24  ii     i i `* Re: The joy of pipes2186282@ud0s4.net
17 Nov 24  ii     i i  `- Re: The joy of pipes1186282@ud0s4.net
16 Nov 24  ii     i `* Re: The joy of pipes27Richard Kettlewell
17 Nov 24  ii     i  `* Re: The joy of pipes26186282@ud0s4.net
17 Nov 24  ii     i   +* Re: The joy of pipes4Lawrence D'Oliveiro
17 Nov 24  ii     i   i`* Re: The joy of pipes3186282@ud0s4.net
17 Nov 24  ii     i   i `* Re: The joy of pipes2Lawrence D'Oliveiro
17 Nov 24  ii     i   i  `- Re: The joy of pipes1186282@ud0s4.net
17 Nov 24  ii     i   `* Re: The joy of pipes21Richard Kettlewell
18 Nov 24  ii     i    `* Re: The joy of pipes20186282@ud0s4.net
18 Nov 24  ii     i     +* Re: The joy of pipes17Lawrence D'Oliveiro
18 Nov 24  ii     i     i`* Re: The joy of pipes16186282@ud0s4.net
18 Nov 24  ii     i     i `* Re: The joy of pipes15Pancho
18 Nov 24  ii     i     i  +* Re: The joy of pipes13Lawrence D'Oliveiro
18 Nov 24  ii     i     i  i`* Re: The joy of pipes12Pancho
18 Nov 24  ii     i     i  i +* Re: The joy of pipes8The Natural Philosopher
18 Nov 24  ii     i     i  i i+* Re: The joy of pipes3Pancho
18 Nov 24  ii     i     i  i ii+- Re: The joy of pipes1The Natural Philosopher
18 Nov 24  ii     i     i  i ii`- Re: The joy of pipes1rbowman
19 Nov 24  ii     i     i  i i`* Re: The joy of pipes4186282@ud0s4.net
19 Nov 24  ii     i     i  i i +- Re: The joy of pipes1Lawrence D'Oliveiro
19 Nov 24  ii     i     i  i i +- Re: The joy of pipes1The Natural Philosopher
19 Nov 24  ii     i     i  i i `- Re: The joy of pipes1Richard Kettlewell
18 Nov 24  ii     i     i  i `* Re: The joy of pipes3rbowman
19 Nov 24  ii     i     i  i  `* Re: The joy of pipes2Pancho
19 Nov 24  ii     i     i  i   `- Re: The joy of pipes1Lawrence D'Oliveiro
19 Nov 24  ii     i     i  `- Re: The joy of pipes1186282@ud0s4.net
19 Nov 24  ii     i     `* Re: The joy of pipes2Robert Riches
19 Nov 24  ii     i      `- Re: The joy of pipes1Lawrence D'Oliveiro
15 Nov 24  ii     `- Re: The joy of pipes1Eli the Bearded
12 Nov 24  i`- Re: The joy of octal1Eli the Bearded
12 Nov 24  `* Re: The joy of octal15Fritz Wuehler
15 Nov 24   `* Re: The joy of octal14186282@ud0s4.net
15 Nov 24    `* Re: The joy of octal13rbowman
16 Nov 24     +* Re: The joy of octal7186282@ud0s4.net
16 Nov 24     i`* Re: The joy of octal6rbowman
16 Nov 24     i `* Re: The joy of octal5186282@ud0s4.net
16 Nov 24     i  +* Re: The joy of octal2Don_from_AZ
17 Nov 24     i  i`- Re: The joy of octal1186282@ud0s4.net
16 Nov 24     i  `* Re: The joy of octal2rbowman
17 Nov 24     i   `- Re: The joy of octal1186282@ud0s4.net
16 Nov 24     `* Re: The joy of octal5186282@ud0s4.net
16 Nov 24      +- Re: The joy of octal1rbowman
16 Nov 24      `* Re: The joy of octal3Andreas Eder
16 Nov 24       `* Re: The joy of octal2The Natural Philosopher
17 Nov 24        `- Re: The joy of octal1186282@ud0s4.net

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal