Gabriel Charette <gch...@google.com> writes: > 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
tcl can everything tr and cut can do (with the above options anyway). > If there are ways to do this directly in TCL, without using exec > calls, I'd be glad to know. Read split(n) and string(n). Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."