[Gllug] problems with grep
Daniel P. Berrange
dan at berrange.com
Wed Nov 23 16:40:24 UTC 2005
On Wed, Nov 23, 2005 at 04:23:11PM -0000, charles wrote:
> grep -E 'e$' words2.txt
>
> doesn't work either. Any more suggestions?
It works just fine
$ grep 'e$' /usr/share/dict/words | head -10
Aaqbiye
Aaronite
abacate
abacinate
Abadite
abaisance
abaisse
abalienate
abalone
abampere
I suspect something odd in the words2.txt file. Perhaps invisible
characters at the end of line - DOS Ctrl+M's being the obvious
candidate.
Regards,
Dan.
--
|=- GPG key: http://www.berrange.com/~dan/gpgkey.txt -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- berrange at redhat.com - Daniel Berrange - dan at berrange.com -=|
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: Digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20051123/263140c4/attachment.pgp>
-------------- next part --------------
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list