Sponsored Content
Top Forums UNIX for Advanced & Expert Users Summation of the column value in an interval. Post 302317089 by vidyadhar85 on Monday 18th of May 2009 04:28:53 AM
Old 05-18-2009
in that case you have to save the summation into some intermediate file and add them up at the end of min
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to perfrom summation for particular delimited field?

Hi, Please help to share your thought about how to perfrom summation for particular delimited field, and output to the particular file based on -rw-r--r-- 1 abc other 3094 Oct 19 09:40 0132019832-ps5_online_cdrm.unl -rw-r--r-- 1 abc other 1588 Oct 19 09:47... (2 Replies)
Discussion started by: rauphelhunter
2 Replies

2. Shell Programming and Scripting

compare the interval of 2 numbers of input2with interval of several numbers of input1

Help plz Does any one have any idea how to compare interval ranges of 2 files. finding 1-4 (1,2,3,4) of input2 in input1 of same key "a" values (5-10, 30-40, 45-60, 80-90, 100-120 ). Obviously 1-4 is not one of the range with in input1 a. so it should give out of range. finding 30-33(31,32,33)... (1 Reply)
Discussion started by: repinementer
1 Replies

3. UNIX for Dummies Questions & Answers

summation of values coming in a row.

Hi All, I need to sum values in a row. eg: input is: sum,value1,value2,value3,.....,value N Required Output: sum,<summation of N values> Please help me... (1 Reply)
Discussion started by: MrGopal666
1 Replies

4. Shell Programming and Scripting

How to shift values in new column after certain interval?

Hello everyone, my data is in a format as below a a a a a a a a a a a a a a a (8 Replies)
Discussion started by: jojo123
8 Replies

5. Shell Programming and Scripting

Summation of column value in flat file

Hello Guys Please find my below requirement I have a flat file with column headers in first line and data The structure like below col1 col2 col3 A 1 2 B 3 4 C 5 6 Say I have to take the summation of col2 (that will depend on the... (2 Replies)
Discussion started by: Pratik4891
2 Replies

6. Shell Programming and Scripting

calculating column summation in a directory of flat files

Hello Guru s I need your kind help to solve my below issue I have a directory of flat files and have to calculate sum of some columns from the flat file . Say for flat file 302 I need the column summation of 2 and 3 rd column For flat file 303 I need the column summation of 5 and... (2 Replies)
Discussion started by: Pratik4891
2 Replies

7. Shell Programming and Scripting

Awk - Summation in Proper decimal Format

Hi I am executing below command to do summation on 46th coloumn. cat File1| awk -F"|" '{p += $46} END { printf"Column Name | SUM | " p}' I am getting output as Column Name | SUM | 1.01139e+10 Here I want output in Proper decimal format. Can someone tell me what change is required for same? (1 Reply)
Discussion started by: sanranad
1 Replies

8. Shell Programming and Scripting

Modification of Summation Script

hi guys, i have a script that basically just sums up the values of 2 particular columns in a file, grouped by the columns specified as well The script is quite long, but it's basically just repetitive.. just for each condition. This script only accepts one type of input file. ... (22 Replies)
Discussion started by: ramneim
22 Replies

9. Shell Programming and Scripting

Summation of a particular column which are in different folders

I have three folders named f1, f2 and f3. The file names are same in all these folders. I would like to get the summation of the second column from all files. How can I do this ? file1 in f1 folder 143 143.69 60.2 81.30 40.4 62.39 166.3 83.38 107.2 60.30 37.5 144 192.62 107.9... (3 Replies)
Discussion started by: edisonjoe
3 Replies

10. UNIX for Beginners Questions & Answers

Awk/sed summation of one column based on some entry in first column

Hi All , I am having an input file as stated below Input file 6 ddk/djhdj/djhdj/Q 10 0.5 dhd/jdjd.djd.nd/QB 01 0.5 hdhd/jd/jd/jdj/Q 10 0.5 512 hd/hdh/gdh/Q 01 0.5 jdjd/jd/ud/j/QB 10 0.5 HD/jsj/djd/Q 01 0.5 71 hdh/jjd/dj/jd/Q 10 0.5 ... (5 Replies)
Discussion started by: kshitij
5 Replies
tixPanedWindow(n)					       Tix Built-In Commands						 tixPanedWindow(n)

__________________________________________________________________________________________________________________________________________________

NAME
tixPanedWindow - Create and manipulate tixPanedWindow widgets SYNOPSIS
tixPanedWindow pathName ?options? STANDARD OPTIONS
The PanedWindow widget supports all the standard options of a frame widget. See the options(n) manual entry for details on the standard options. WIDGET-SPECIFIC OPTIONS Name: command Class: Command Switch: -command Specifies the command to invoke when the panes change their sizes. This command is called with a list of integers that record the new sizes of the panes. The sizes of the panes are listed in the order of the panes' creation. [-dynamicgeometry dynamicGeometry] If set to true, the size of the PanedWindow will dynamically change if the size of any of its panes changes. Otherwise, the size of the PanedWindow will only increase when size of any of its panes changes and will not decrease. The default value is true. [-han- dleactivebg handleActiveBg] Specifies the active background color of the resize handles. When the mouse cursor enters a resize han- dle, the resize handle will adopt the active background color. [-handlebg handleBg] Specifies the normal background color of the resize handles. [-height height] Specifies the desired height for the window. [-orientation orientation] Specifies the orientation of the panes. Must be either vertical or horizontal. [-paneborderwidth or -panebd paneBorderWidth] Specifies the border width of the panes. [-panerelief paneRelief] Specifies the border relief of the panes. [-separatoractivebg separatorActiveBg] Specifies the active background color of the separators. When the user grabs a resize handle, the separators will adopt the active background color. [-separatorbg separatorBg] Specifies the normal background color of the separators. [-width width] Specifies the desired width for the window. SUBWIDGETS
All the pane subwidgets created as a result of the add command can be accessed by the subwidget command. They are identified by the pane- Name parameter to the add command. _________________________________________________________________ DESCRIPTION
The tixPanedWindow command creates a new window (given by the pathName argument) and makes it into a PanedWindow widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the PanedWindow widget such as its cursor and relief. The PanedWindow widget allows the user to interactively manipulate the sizes of several panes. The panes can be arranged either vertically or horizontally. Each individual pane may have upper and lower limits of its size. The user changes the sizes of the panes by dragging the resize handle between two panes. WIDGET COMMAND
The tixPanedWindow command creates a new Tcl command whose name is the same as the path name of the PanedWindow widget's window. This com- mand may be used to invoke various operations on the widget. It has the following general form: pathName option ?arg arg ...? PathName is the name of the command, which is the same as the frame widget's path name. Option and the args determine the exact behavior of the command. The following commands are possible for PanedWindow widgets: pathName add paneName ?option value ...? Adds a new pane subwidget with the name paneName into the PanedWindow widget. Additional configuration options can be given to con- figure the new button subwidget. Three configuration options are supported: -after pane Specifies that the new pane should be placed after pane in the list of panes in this PanedWindow widget. -at integer Specifies the position of the new pane in the list of panes in this PanedWindow widget. 0 means the first position, 1 means the second, and so on. In addition, end means the end of the list. -before pane Specifies that the new pane should be placed before pane in the list of panes in this PanedWindow widget. -expand factor Specifies the expand/shrink factor of this pane. Factor must be a non-negative floating point number. The default value is 0.0. The expand/shrink factor is used to calculate how much each pane should grow or shrink when the size of the PanedWindow main window is changed. When the main window expands/shrinks by n pixels, then pane i will grow/shrink by about n * factor(i) / summation(factors), where factor(i) is the expand/shrink factor of pane i and summation(factors) is the summation of the expand/shrink factors of all the panes. If summation(factors) is 0.0, however, only the last visible pane will be grown or shrunk. -min integer Specifies the minimum size, in pixels, of the new pane; the default is 0. -max integer Specifies the maximum size, in pixels, of the new pane; the default is 10000. -size integer Specifies the size, in pixels, of the new pane; if the -size option is not given, or set to the empty string, the PanedWindow widget will use the natural size of the pane subwidget. pathName cget option Returns the current value of the configuration option given by option. Option may be -min, -max and/or -size, or any option accepted by the Tk frame widget. pathName configure ?option? ?value option value ...? Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options for pathName (see Tk_ConfigureInfo for information on the format of this list). If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. Option may be any of the non-static options of the PanedWindow widget. pathName delete paneName Removes the pane given by paneName and deletes its contents. pathName forget paneName Removes the pane given by paneName but does not delete its contents. This pane can be later added back to the PanedWindow widget by the manage method. pathName manage paneName ?option value ...? Adds the pane given by paneName back to the PanedWindow widget. PaneName must be already forgotten by the forget method. Additional option-value pairs, same as those accepted by the add method, can be given to control the appearance and position of the pane. pathName panecget paneName option Returns the current value of the configuration option given by option in the pane given by paneName. Option may have any of the val- ues accepted by the add widget command. pathName paneconfigure paneName ?option? ?value ...? When no option is given, prints out the values of all options of this pane. If option is specified with no value, then the command returns the current value of that option. If one or more option-value pairs are specified, then the command modifies the given pane's option(s) to have the given value(s); in this case the command returns an empty string. Option may be -min, -max and/or -size, or any option accepted by the Tk frame widget. The sizes of the panes may be changed as a result of calling the paneconfigure command. pathName panes Returns a list of the names of all panes. pathName setsize paneName newSize ?direction? Sets the size of the pane specified by paneName to newSize. The direction parameter specifies in which direction the pane should grow/shrink. Possible values are next: the pane will grow or shrink by moving the boundary between itself and the pane to its right or bottom; prev: the pane will grow or shrink by moving the boundary between itself and the pane to its left or top. pathName subwidget name ?args? When no options are given, returns the pathname of the subwidget of the specified name. When options are given, the widget command of the specified subwidget will be called with these options. BINDINGS
The panes' sizes will be changed when the user drags the handles. The change in the panes' sizes may be subjected to the -min, -max and -size options of the panes. KEYWORDS
TIX, Container Widget Tix 4.0 tixPanedWindow(n)
All times are GMT -4. The time now is 10:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy