Hi 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.
I am doing this (which i know is somewhere wrong) grep -h <string to search> <file name containing the regular expressiong> The file contains regular expressons seperated by new line. e.g. File contains the following --------- snip -------- .ello --------- snip -------- Now it should match any string like ello hello heello etc Please point me to a tutorial or better give me some hint regarding the above mentioned problem. Thanks in advance. Ajay Pal Singh Atwal Lecturer Dept. CSE & IT ---------------------- http://www.ajaypal.com ---------------------- ------------------------------------------------------- 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
