This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Fix the object file grepping, take two


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]