I have 2 variables in my shell scripts in which i am using awk and calculating 2 files and getting 2 different variable called in_total and out_total. I want to subtract one variable from another so plz tell me how i can do that.
Example is:
cat in_file | awk -F: '{
in_total += $1 * 86400... (3 Replies)
Is there any awk command to calculate P Value ?(Probability)
Is it possib;e to calculate P va;ue for this data for ex?
7.891284
8.148193
7.749575
7.958188
7.887702
7.714877
8.141548
7.51845
8.27736
7.929853
7.92456
8.249126
7.989113
8.012573
8.351206 (2 Replies)
Hello,
I'm trying to create a shell script (#!/bin/sh) which should tell me the age of a file in minutes...
I have a process, which delivers me all 15 minutes a new file and I want to have a monitoring script, which sends me an email, if the present file is older than 20 minutes.
To do... (10 Replies)
Hi,
I have a file with more than 2,000 rows like this:
05/26/2011,1200,1500
I would like to create a awk shell script that calculate the price average of the second and third field each 5,10 and 20 rows or ask me for the values, starting at first row.
Finally compare the average value... (1 Reply)
Hi.
For an homework, I have to simulate some part of the PS function. By reading the doc I've been able to find most of it but I don't how I can get the %cpu for each PID.
I've read on Internet that I have to do:
(utime(t)-utim(t-1))/(cputime(t)-cputime(t-1))
where cputime is the sum of... (2 Replies)
i have file input
abcedef|wert|13|03|10|04|23|A1|13|05|01|09|31
fsdasdf|ferg|12|04|25|21|21|A1|13|02|26|20|31
dfsfsad|gerg|12|04|25|21|21|A1|13|02|25|25|31
i expect the output
abcedef|wert|13|03|10|04|23|A1|13|05|01|09|31|9.516666667... (5 Replies)
Experts,
file1 : Want to find the difference of $3 field from next line's 3rd field,
The difference to be calculated from next lines 3rd field, to current lines lines 3rd field.
file1 :
Jun24_2013.06242013 3301244928 3133059904 167370640 95%
Jun25_1124.06252013 3301244928... (4 Replies)
Hi
is there a way to calculate the progress when using the tar -cvf a folder say of 300Gb (4 Replies)
Discussion started by: fretagi
4 Replies
LEARN ABOUT OSX
ttk::scale
ttk::scale(n) Tk Themed Widget ttk::scale(n)
__________________________________________________________________________________________________________________________________________________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 command] Specifies the prefix of a Tcl command to invoke whenever the scale's value is changed via a widget command. The actual
command consists of this option followed by a space and a real number indicating the new value of the scale. [-from from] A real value
corresponding to the left or top end of the scale. [-length 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. [-orient orient] Specifies which orientation whether the widget should be laid out horizontally or vertically. Must be either hori-
zontal or vertical or an abbreviation of one of these. [-to 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. [-value value] Specifies the current floating-point value of
the variable. [-variable 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(n).
pathName configure ?option? ?value option value ...?
Modify or query widget options; see ttk::widget(n).
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(n).
pathName instate statespec ?script?
Test the widget state; see ttk::widget(n).
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(n).
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(n), scale(n)
KEYWORDS
scale, slider, trough, widget
Tk 8.5 ttk::scale(n)