On Sat, Jul 16, 2011 at 12:59 AM, Andreas Schwab <sch...@linux-m68k.org> wrote: > > gch...@google.com (Gabriel Charette) writes: > > > + set expectedSum [exec tr -d \} << [exec cut -f 4 -d\ << > > $xdiff_entry]]
$xdiffentry is set to something like {{pph asm diff 123456}}, so i need tr and cut to extract 123456 (i tried removing the tr and i get "123456}") > > > + set actualSum [exec cut -f 1 -d\ << [exec sum << $diff_result]] and the sum of $diff_result is something like "123456 12", i'm ignoring the second number for simplicity; hence why i'm using cut here. If there are ways to do this directly in TCL, without using exec calls, I'd be glad to know. Gabriel