This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix the object file grepping, take two
- To: "Zack Weinberg" <zackw at stanford dot edu>
- Subject: Re: Fix the object file grepping, take two
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 16 Mar 2001 03:54:02 -0300
- Cc: gcc-patches at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <20010315222414.P251@stanford.edu>
On Mar 16, 2001, "Zack Weinberg" <zackw@stanford.edu> wrote:
> + od -c conftest.o | cut -c8- |
> + sed ['s/\*/./g; s/ \\n/*/g; s/ [0-9][0-9][0-9]/./g; s/ \\[^ ]/./g'] |
IIRC, it's generally recommended to use sed instead of cut. Besides,
since you're already running sed, it would be a win to fold it into
the single sed command:
's/^[0-7]*[ ]*//'
^^^^ this is a TAB
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me