02-05-2009
Tcl question
Hello guys, please help me
I want to use TCl to move the lines with line number as odd number to a new file source_odd.txt, and move the lines with character 'a' to another file source_a.txt.
I also want to create a tcl function to list all the file names in a appointed directory.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello
I am a TCL beginer, so please answer accordingly
here are my question:
1. variable scope
I built a text widget and gave it a textvariable: cmd_entry, I
I sent it to a procedure where I declare it as “global cmd_entry” and give it a value
The problem is that in the main program... (0 Replies)
Discussion started by: orid
0 Replies
2. Shell Programming and Scripting
can someone tell my why the puts is not reflecting the variable?
CUT -->
set fp
while {-1 != } {
button .a${line} -text "${line} " -width 20 -command {
puts $line
}
pack .a${line}
} (0 Replies)
Discussion started by: hpuxrox
0 Replies
3. Shell Programming and Scripting
Hello Tcl Experts,
set i 0
while { $i < 10 } {
puts "$i"
incr i
}
I am trying to print the value of "i" at the same place. i.e. it should first print "1", then in next iteration print "2" over the location of "1" and so on.... (i.e. in every iteration, delete the previous number and... (2 Replies)
Discussion started by: sumitgarg
2 Replies
4. Shell Programming and Scripting
Does any one know how to capture the output of command called from a TCL script?
I cannot figure this out. I've been working on it for 4 hours now :confused: (2 Replies)
Discussion started by: Lorna
2 Replies
5. Shell Programming and Scripting
Hello,
Can someone explaine me the meaning of this program:
#! /usr/bin/tclsh
set mctal
set a
set b
set c
set d
set e
while {! line cell]} {
}
while {! line]} {
}
while {! line cell]} {
}
while {! line]} {
} (0 Replies)
Discussion started by: jolecanard
0 Replies
6. Shell Programming and Scripting
Hey,
Can anyone tell me what is the default tcl button color is?
I've already tried gray60/70/80/85/90/95.
None are the same.
Thanks,
Phil.
-----Post Update-----
You can disregard this question, found the color in #E0DFE3 (0 Replies)
Discussion started by: Phi01
0 Replies
7. Shell Programming and Scripting
how can i make a list with the n last files and their details in tcl?..
thanks. (0 Replies)
Discussion started by: eee
0 Replies
8. Shell Programming and Scripting
Hello everyone,
I'm new in tcl scripting.
I'm currently studying a tcl script and came across this line:
regexp {(\d+)(\S?)} $opts match opt swi
According to my understanding, this line means to search in the opts variable for one or more digit, followed by a non-whitespace character... (2 Replies)
Discussion started by: mar85
2 Replies
9. Shell Programming and Scripting
Hello everyone,
What is the difference between these two tcl commands:
(A) --> puts "ERROR!!! ${current_name}/${opt} is not found."
(B) --> puts "ERROR!!! $current_name/$opt is not found."
Are the braces needed to be put? Or both A and B has the same output? (5 Replies)
Discussion started by: mar85
5 Replies
10. Shell Programming and Scripting
I need some help with regexp in tcl. The following code does work if the $urlvar ends in jpg,jpeg,png or gif. Eg, protocol(http/https)://testsite.com/images/image1.jpg
if { ! } {
//Do something
}
My problem is that if the URL does not end in these extensions this regexp is of no... (1 Reply)
Discussion started by: ampak
1 Replies
BEAV(1) General Commands Manual BEAV(1)
NAME
beav - binary file editor and viewer
SYNOPSIS
beav [file...]
DESCRIPTION
This is a brief description of the minimal set of commands that are necessary to start using beav effectively. For more information,
review the file /usr/share/doc/beav/beav140.txt.gz.
The file-visit command, Ctl-X Ctl-V, can be used to read a file in for editing. The file can also be read in from the command line; beav
<edit_file>.
Data is displayed in one or more windows. These commands can be used to navigate around the windows.
move-back-char Ctl-B moves left
move-back-line Ctl-P moves up
move-forw-char Ctl-F moves right
move-forw-line Ctl-N moves down
window-delete Ctl-X 0 delete window
window-expand Ctl-X 1 expand window
The move-to-byte command, Ctl-X G, will prompt you for a byte position to move to.
These commands will insert a zero byte at the cursor position or delete the byte at that position.
insert-unit Ctl-X I
delete-forw-unit Esc D
The file-save command, Ctl-X Ctl-S, will save the data to the file if a change has been made.
The help command, Esc ?, will display a list of all commands and their current key bindings.
The abort-cmd command, Ctl-G, will abort any command that is in operation.
The quit-no-save command, Ctl-X Ctl-C, will exit beav. If there is any data that has not been saved you will be warned.
FILES
/usr/share/doc/beav/beav140.txt.gz
BEAV(1)