Question

Richard R. Sivernell res005ru
Mon May 17 11:37:53 PDT 2004


On Thu, 19 Sep 2002 08:14:39 -1000
James McDonald <jmcd9336 at bigpond.net.au> wrote:

> fire up the Gimp and then use it's air brushing features to blurr out the word 
> and then insert the const over the top using the text features of gimp.....
> 
> On Tue, 17 Sep 2002 21:29, Richard R. Sivernell wrote:
> > List
> >
> >   This may be stupid simple, that is why I am here, my question is this:
> > I have some files *.xpm that have a word static in them. I want to change
> > the word to const. What is the easy way to to have a script to open each
> > file in a directory & change the word, save and close the file.
> >
> > Any help appreciated  Cheers
> 
> -- 
> James McDonald
> Systems Engineer
> 
> Public key (824785B3) available at http://www.keyserver.net/ 
> 
> _______________________________________________
> Linux-users mailing list
> Linux-users at linux-sxs.org
> Unsubscribe/Suspend/Etc ->
> http://www.linux-sxs.org/mailman/listinfo/linux-users
Lonnie Brad James

   Thanks for responding.
Lonnie you are coorect, but these can be displayed in text as they were 
created that way I guess, as they are part of a library. I am updateing the 
library to the new C++ ANSI - ISO standards. As such the static part is 
deprecated or causing aa problem. So change static to const.
The below is actuall one of these: James  Gimp does a very nice job of displaying

them too.

/* XPM */
static char *notepad[] = {
/* width height num_colors chars_per_pixel */
"    32    32        8            1",
/* colors */
". c none s none",
"# c #000000",
"a c #ffffff",
"b c #00ffff",
"c c #c6c6c6",
"d c #007b7b",
"e c #848484",
"f c #008484",
/* pixels */
".........##.##.##.##.##.##......",
"........#a##a##a##a##a##a###....",
".......#b#bc#cb#bc#cb#bc#cd##...",
".......#cbcbcbcbcbcbcbcbcd#ce#..",
"......#cbcbcbcbcbcbcbcbcbd#ce#..",
"......#bcbcbcbcbcbcbcbcbd#cce#..",
".....#bcbc##########bcbcd#cce#..",
".....#cbcbcbcbcbcbcbcbcd#ccce#..",
"....#cbcb##########cbcbd#ccce#..",
"....#bcbcbcbcbcbcbcbcbd#eeece#..",
"...#bcbcbcbcbcbcbcbcbcd#ccace#..",
"...#cbcbcbcbcbcbcbcbcd#cccace#..",
"..#cbcbcbcbcbcbcbcbcbd#eeeece#..",
"..#bcbcbcbcbcbcbcbcbd#cccaace#..",
".#bcbcbcbcbcbcbcbcbcd#cccaace#..",
".#cbcbcbcbcbcbcbcbcd#eeeeeece#..",
"#cbcbcbcbcbcbcbcbcbd#cccaaace#..",
"#bcbcbcbcbcbcbcbcbd#ccccaaace#..",
"#dddddddddddddddddf#eeeeeeece#..",
".##################ccccaaaace#..",
"......#ccccccccccccccccaaaace#..",
"......#eeeeeeeeeeeeeeeeeeeece#..",
"......#cccccccccccccccaaaaace#..",
"......#cccccccccccccccaaaaace#..",
"......#eeeeeeeeeeeeeeeeeeeece#..",
"......#cccccccccccccaaaaaaace#..",
"......#ecaaaaaaaaaaaaaaaaacce#..",
"......#eeccccccccccccccccccee#..",
".......#eeeeeeeeeeeeeeeeeeee#...",
"........####################....",
"................................",
"................................"
};

Brad appreciate the script, will look at it later after finishing all 
of my homework.
-- 
Rick Sivernell
Dallas, Texas  75287
972 306-2296
res005ru at gte.net
Caldera Open Linux eWorkStation 3.1.1
Registered Linux User

   .~.
  / v \
 /( _ )\
   ^ ^
In Linux we trust!


More information about the Linux-users mailing list