Fix the object file grepping, take two

Alexandre Oliva aoliva@redhat.com
Thu Mar 15 22:54:00 GMT 2001


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



More information about the Gcc-patches mailing list