[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [seul-edu] Re: perl or......

At 04:51 PM 12/3/00 +0800, S. Barret Dolph wrote:
>I would like to be able to check some books for root words.
>Example.... look for occurances of ped, cor, cit, in swift.txt
>Would it be possible with Perl, or anything else, to find the occurances 
>of a list of words, show where those words are, and save this task to a 

Others have already responded that "grep" will do this for you. But the
output of grep will be fairly crude and hard to interpret. A more detailed
description of what you want to accomplish might lead to better, more
focused feedback.

Please do not misunderstand me: the other suggestions are correct.I just
suspect they will not do the unstated thing that you really want to accomplish.

For example, take "ped". It is a root in "orthopedic" but not in "slapped".
It takes more than grep to make that distinction; it takes a lot of design
work, and I don't know of anything in the free/Open Source software world
that operates at that level of sophistication. 

------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
Palo Alto, CA           	 	         ray@comarre.com