Perl regular expressions are like a drug... Once you start using em, you
can't stop.
:)
-- Nathan
> -----Original Message-----
> From: Patrik Stridvall [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 19, 2000 4:07 PM
> To: '[EMAIL PROTECTED]'; Francois Gouget
> Cc: [EMAIL PROTECTED]
> Subject: RE: Diffing Windows and Wine (part2)
>
>
> > > Why do you wish to know awk (except to read awk applications)?
> > > Perl is much better.
> >
> > Just for a more lightweight solution (one liners).
>
> Perl one liners work just fine:
> perl -i -pe 's/Foo/Bar/g' *.c
> does inplace search and replace of Foo with Bar in all *.c files.
>
> > I know,
> > though, I should
> > just learn more Perl...
>
> What you really should learn is Perl style regular expressions.
> If you don't like Perl they can be used in Python as well.
>
> Beside if you know one kind the other kinds are easy to learn.
>
> > > Also strange function protypes that can't be identified as such
> > > are simple skipped and it is hard for me to know if that happends.
> > > Please report to me if you find any.
> >
> > OK, Ive found a couple so far but I'll lump them together
> > when I have it
> > working. Right know I have it generating prototypes and blank
> > functions with
> > the correct parameters. Still some work to go though.
>
> OK.
>
> > > Anyway I'm not sure it really should handle such things.
> > > After all you can alway use sort and uniq or
> > > a simple perl script. It isn't very useful
> > > at its current form so some formating is needed anyway.
> >
> > I agree, I dont think it should. I have to do post processing
> > on the results
> > anyway (insert variable names for tracing etc), so its not
> a problem.
>
> OK. If you need Perl script (or something else) that does any kind
> of text to text transformations, just ask.
>