Commands pipe



Want to be able to write

compi {open lines.txt r|read|string trim|split~\n|puts}

instead of

set txt [read [open lines.txt r]]
set lastline [split [string trim $txt] \n]
puts $lastline

?

See http://wiki.tcl.tk/17419

.


Quantcast