Hello, noob here.

I have a table called 'entries' with lots of sentences, one per row
(id). I need to find specific sentences that have the words I'm looking
for anywhere in them. For example:

>1. The bird entered the kitchen through the door.
>
>2. You left the door of your car open.
>
>3. Close the window or the bird will get out of the car.

If I search for 'bird' and 'door', I want only the sentence with the id
1 to come up. If I search for 'door' and 'car', I want only the sentence
with the id 2 to come up. If I search for 'bird' and 'car', I want only
the sentence with the id 3 to come up.

So, basically, what this grep command would do:

> cat my.file | grep bird | grep door

But I'm not getting anywhere with any search technique or plugin I've
tried so far. Any ideas?
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to