From mboxrd@z Thu Jan 1 00:00:00 1970 From: "n mishra" Subject: (unknown) Date: 27 Feb 2003 19:05:33 -0000 Sender: linux-newbie-owner@vger.kernel.org Message-ID: <20030227190533.9852.qmail@webmail17.rediffmail.com> Reply-To: "n mishra" Mime-Version: 1.0 Return-path: Content-Disposition: inline List-Id: Content-Type: text/plain; format=flowed; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-gcc@vger.kernel.org Hi all, I am trying to write a program in c to be able to search a file for any pattern which will be given by the user at runtime.Basically a search tool. Could someone suggest a good way of doing this.I've heard of lex and yacc and also awk.Which one is better or is there any other option. Or is there any way i can use something like grep through a 'c' program. Thanks mishra - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs