[LCP]Line by line checking of file for a substring.

G.S. Mohan gs_mohan at yahoo.com
Fri Feb 18 13:54:02 UTC 2005


Hi,

You can use PCRE library which supports perl regular
expressions. PCRE- Perl Compatbile Regular Expression.


Thanks,
Mohan

--- Keith Schincke <keith.schincke at gmail.com> wrote:

> You could also look at 'man 3 regcomp'
> 
> Keith
> 
> 
> On 17 Feb 2005 08:04:42 -0000, preeth k
> <k_preeth at rediffmail.com> wrote:
> > 
> > 
> >    
> >  Hi,
> >    I have a file which consists of a no. of lines.
> What I want to do is line
> > by line checking of the file to see if a
> particular substring is present in
> > it. Also the contents of the file are not
> delimited in a regular way(ie, at
> > some places it is delimited by 1 blank space
> whaereas at some other places
> > it may be delimited by 10 or 15 blank spaces.)
> Please suggest a way other
> > than awk, cut or strtok because I have tried all
> these with no effect.
> >      I am doing this in C language in Redhat Linux
> platform.
> >  Preeth. 
> > 
> >
> 
> _______________________________________________
> This is the Linux C Programming List
> : 
> http://lists.linux.org.au/listinfo/linuxcprogramming
> List
> 



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250




More information about the linuxCprogramming mailing list