more notes...

jsmaby at virgo.umeche.maine.edu jsmaby at virgo.umeche.maine.edu
Sun Oct 20 05:26:48 PDT 2002


>>>sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \
>>>-e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \
>>>lib/Makefile.in.backup > lib/Makefile.in ??

> Ah, what a graceful expression... really flows off the tounge nicely, 
> doesn't it.

I don't know about that; sed -e 'foo' -e 'bar' could be better written
as sed 'foo; bar'.  And then you've got the whole Makefile.in.backup
sillyness.... I much prefer the following:

echo -e '132 s/^/atexit.c/\n192 s/^/atexit$U.$(OBJEXT) /\nwq' \
  | ed lib/Makefile.in

Or perhaps better written:

echo '132 s/^/atexit.c/
      192 s/^/atexit$U.$(OBJEXT) /
      wq' | ed lib/Makefile.in

Kind of gives one a reason to install ed, eh?
-James
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list