[Lvlug] Need some sed/awk magic
Mark
mstanley at technologist.com
Tue Aug 23 23:09:32 EDT 2005
> > From: Mark <mstanley at technologist.com>
> > Date: 2005/08/23 Tue PM 09:29:21 EDT
> > To: lvlug <lvlug at thelinuxlink.net>
> > Subject: [Lvlug] Need some sed/awk magic
> >
> > I just purchased the CCS C compiler for doing embedded development and it
> > looks like they didn't consider case sensitivity when porting to Linux.
> >
> > There are 90 source files in the examples directory and 133 files in the
> > devices directory. The problem is that all #includes in the source code
> > are upper case while all the file names in the 'devices' directory are
> > lower case.
> >
> > So what I need to do is for each filename (133 files) in 'devices' change
> > every #include <FILENAME> to #include <filename> in every source file in
> > the examples directory.
> >
> > I just went through the last thread we had covering awk but it wasn't
> > close enough to what I need.
> >
> > -Mark
On Tuesday 23 August 2005 10:21 pm, bigpaws at epix.net wrote:
> Try this post:
>
> http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=948204
>
Hm, changing the case of the filenames was a thought but then I would have to
remember to type all my #include's in uppercase. I really just want to run
through each source code file, find any references to any of the files listed
in 'devices' and then copy the filename over the offending string.
-Mark
More information about the Lvlug
mailing list