10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi,
I have Multiple files with the following data :
File1
100414 DR1
END
XXXXX
Test1 Test2 Test3
Test4 Test5 Test6
END
100514 DR2
END
XXXXX
Test7 Test8 Test9
Test10 Test11 Test12
END
100614 DR3 (5 Replies)
Discussion started by: newageBATMAN
5 Replies
2. Shell Programming and Scripting
Hi,
I want to know how I can copy line 6th to 10th and paste it after 17th line in same file.
Thanks,
Biplab (19 Replies)
Discussion started by: Biplab
19 Replies
3. UNIX for Dummies Questions & Answers
How would you do vim copy line and paste at the beginning, middle, and end of another line. I know yy copies the whole line and p pastes the whole line, but on its own separate line. Sometimes I would like to copy a line to the beginning, middle, or end of another line. I would think this would be... (3 Replies)
Discussion started by: cokedude
3 Replies
4. Shell Programming and Scripting
Hello. I've made a simple script which asks the user to input a hash and then runs a command that replaces the variable $hash with what the user inserted. The ting is that when the programm asks for input I can't paste anything there..! any clues?? :wall: (8 Replies)
Discussion started by: louboulos
8 Replies
5. Shell Programming and Scripting
Hello,
I am quite new to shell scripting so don't know all the tools available. What I'm trying to do is open a file optimal.txt search for objectiveValue and copy the number in quotes next to it.
e.g.
...
solutionName="incumbent"
solutionIndex="-1"
objectiveValue="13246"
... (6 Replies)
Discussion started by: StephanR
6 Replies
6. UNIX for Dummies Questions & Answers
I'm having a problem copy/pasting from a txt file in windows to vi. What happens is I copy a chunk of text, go to the putty terminal, go into insert mode, and right click, and it will stop pasting at a random point and freeze up. Nothing I do gets out of it.
This only happens on my account... (1 Reply)
Discussion started by: solidarity
1 Replies
7. Shell Programming and Scripting
Hello,
I have this path and file:
/dir/dir/dir/dir/dir/dir/dir/dir/dir/THIS_SPOT/fle.txt
I want to end up with:
/dir/dir/dir/dir/dir/dir/dir/dir/dir/THIS_SPOT/fle.txtTHIS_SPOT
Take the dir after the 10th slash, add a tab at the end and paste the dir it copied.
Thanks (4 Replies)
Discussion started by: crowman
4 Replies
8. Shell Programming and Scripting
Hi
I want to grep for a line and copy and paste that line.
for Example
---- file abc.txt ----
host=atlx1 sid=atld1 mail=abc@abc.com
host=atlx2 sid=atld2 mail=xyz@abc.com
host=atlx3 sid=atld3 mail=def@abc.com
host=atlx4 sid=atld4 mail=mno@abc.com
--- end of file abc.txt ----
Now I... (16 Replies)
Discussion started by: upsrk
16 Replies
9. Shell Programming and Scripting
Hi
I am having some trouble cut and paste a file based on the content of another file.
I have a file called draft. I need to cut and paste its content to another file based on the content of a file called proc.txt
The content of proc.txt is like the following:... (7 Replies)
Discussion started by: tiger99
7 Replies
10. UNIX for Dummies Questions & Answers
Hi all!
How do I cut, copy and paste under unix??? (2 Replies)
Discussion started by: aitor314
2 Replies
ttk::scale(3tk) Tk Themed Widget ttk::scale(3tk)
__________________________________________________________________________________________________________________________________________________
NAME
ttk::scale - Create and manipulate a scale widget
SYNOPSIS
ttk::scale pathName ?options...?
_________________________________________________________________
DESCRIPTION
A ttk::scale widget is typically used to control the numeric value of a linked variable that varies uniformly over some range. A scale dis-
plays a slider that can be moved along over a trough, with the relative position of the slider over the trough indicating the value of the
variable.
STANDARD OPTIONS
-class -cursor -style
-takefocus
See the ttk_widget manual entry for details on the standard options.
WIDGET-SPECIFIC OPTIONS
Command-Line Name:-command
Database Name: command
Database Class: Command
Specifies the prefix of a Tcl command to invoke whenever the scale's value is changed via a widget command. The actual command con-
sists of this option followed by a space and a real number indicating the new value of the scale.
Command-Line Name:-from
Database Name: from
Database Class: From
A real value corresponding to the left or top end of the scale.
Command-Line Name:-length
Database Name: length
Database Class: Length
Specifies the desired long dimension of the scale in screen units (i.e. any of the forms acceptable to Tk_GetPixels). For vertical
scales this is the scale's height; for horizontal scales it is the scale's width.
Command-Line Name:-orient
Database Name: orient
Database Class: Orient
Specifies which orientation whether the widget should be laid out horizontally or vertically. Must be either horizontal or vertical
or an abbreviation of one of these.
Command-Line Name:-to
Database Name: to
Database Class: To
Specifies a real value corresponding to the right or bottom end of the scale. This value may be either less than or greater than
the from option.
Command-Line Name:-value
Database Name: value
Database Class: Value
Specifies the current floating-point value of the variable.
Command-Line Name:-variable
Database Name: variable
Database Class: Variable
Specifies the name of a global variable to link to the scale. Whenever the value of the variable changes, the scale will update to
reflect this value. Whenever the scale is manipulated interactively, the variable will be modified to reflect the scale's new
value.
WIDGET COMMAND
pathName cget option
Returns the current value of the specified option; see ttk::widget(3tk).
pathName configure ?option? ?value option value ...?
Modify or query widget options; see ttk::widget(3tk).
pathName get ?x y?
Get the current value of the -value option, or the value corresponding to the coordinates x,y if they are specified. X and y are
pixel coordinates relative to the scale widget origin.
pathName identify x y
Returns the name of the element at position x, y. See ttk::widget(3tk).
pathName instate statespec ?script?
Test the widget state; see ttk::widget(3tk).
pathName set value
Set the value of the widget (i.e. the -value option) to value. The value will be clipped to the range given by the -from and -to
options. Note that setting the linked variable (i.e. the variable named in the -variable option) does not cause such clipping.
pathName state ?stateSpec?
Modify or query the widget state; see ttk::widget(3tk).
INTERNAL COMMANDS
pathName coords ?value?
Get the coordinates corresponding to value, or the coordinates corresponding to the current value of the -value option if value is
omitted.
SEE ALSO
ttk::widget(3tk), scale(3tk)
KEYWORDS
scale, slider, trough, widget
Tk 8.5 ttk::scale(3tk)