/usr/share/blt2.4/demos/scripts/bgtest.tcl is in blt-demo 2.4z-4.2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | set fid [open "../README" "r"]
set data [read $fid]
close $fid
regsub -all "\r|\n|\t" $data " " data
set data [split $data " "]
set count 0
set maxWords 500
foreach word $data {
if { $word == "" } {
continue
}
if { $count & 0x1 } {
puts -nonewline stderr "($word)"
flush stderr
} else {
puts -nonewline stdout "($word)"
flush stdout
}
incr count
if { ($count % 10) == 0 } {
puts stdout ""
puts stderr ""
flush stdout
flush stderr
}
if { $count > $maxWords } {
break
}
after 500
}
exit 0
|