Hi,

On Tue, 8 Mar 2005, Ajay Pal Singh Atwal wrote:
> I am trying to write a simple script (command) that will match a give
> string with regular expressions stored in a text file. And outputs the
> matching regular expression.

echo <string to search> | grep -f <file name containing the regular
expressions>

--
Rahul Upakare



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
linux-india-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to