[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep 2.5.1 from redhat 9.0
From: |
Andy Stanton |
Subject: |
grep 2.5.1 from redhat 9.0 |
Date: |
Thu, 12 Jun 2003 20:40:21 -0400 (EDT) |
grep '^\(.\{0,1\}\)\(.\{0,1\}\)\(.\{0,1\}\)\(.\{0,1\}\)\3\2\1$'
/usr/share/dict/words
tested on GNU grep 2.5.1, this produces the following on my redhat 9.0 box:
Abe
Abo
Abu
ace
act
Segmentation fault
tested on GNU grep 2.4.2, this produces the following on my redhat 7.2 machine:
bib
bob
boob
civic
dad
deed
did
dud
eke
ere
ewe
eye
gag
gig
huh
level
madam
non
noon
nun
peep
pep
pip
pop
pup
radar
redder
refer
reviver
rotator
rotor
sees
sexes
solos
tit
this was tested against a small C++ program, and it does indeed match all
palindromes of 7 characters or less from /usr/share/dict/words
(actually, there are no palindromes longer than 7 characters in my copy
of the file). So the output from 2.4.2 is defintely correct.
I wasn't sure if it's redhat's fault or not, so i figured i'd goto the
true source first.
Hope this was helpful.
-- Andy Stanton
- grep 2.5.1 from redhat 9.0,
Andy Stanton <=