Input file
Desired output result
I have long list of input file as shown above.
It has a "," delimited to separate between each record in column 2.
I would like to sum all the record in same line at column 2 to get the desired output result.
The theory behind to manual calculate to get the Desired output result
Thanks for any advice.
Hi all,
I have a requirement where i have to read multiple files using Shell Script in Korn Shell.
each file will have the 3rd line as the amount field, i have to read this amount field and sum it for all the files.
any idea on how to achieve this?? (i think i can achieve it using a loop,... (9 Replies)
Hi Experts,
I got a question..
In the following output of `ps -elf | grep DataFlow` I get:-
242001 A mqsiadm 2076676 1691742 0 60 20 26ad4f400 130164 * May 09 - 3:02 DataFlowEngine EAIDVBR1_BROKER 5e453de8-2001-0000-0080-fd142b9ce8cb VIPS_INQ1 0
242001 A mqsiadm... (5 Replies)
Hi All,
I have some numbers in two different files
file1
4.21927E+00 4.68257E+00 5.56871E+00 3.59490E+01 7.65806E+01 1.39827E+02
and
file2
5.61142E+00 6.21648E+00 7.40152E+00 4.41917E+01 8.31586E+01 1.42938E+02
I would like to get file3
which contains in each column the sum of the... (6 Replies)
Hi,
Can someone help me to get the complete files size (sum) over a perod time (1 day,2days)in a directory.
eg:
Directory :ABC
I have a1,a2,a3 files are created in last 24 hours so I need to get the some of all these files.
I am using the below find command but its giving me the... (1 Reply)
Hi,
I have a log file created from a load balancer showing connections to each member of a two member pool with the following format (where first field is source IP, second field is load balanced IP address and third field is destination member. I need to plot a graph by date/time and number of... (5 Replies)
Discussion started by: shog63
5 Replies
7. Post Here to Contact Site Administrators and Moderators
HI Everyone,
I have below source file
AAA|NAME1|ADDRESS1|300.20
BBB|NAME2|ADDRESS2|400.31
CCC|NAME3|ADDRESS3|300.34
I have requirement where I need to sum up fourth field in above fixed width pipe delimited flat file. When I use below code, it gives me value 1001.00
But I am expecting... (1 Reply)
I am using the
cat /home/billing/1|awk '{ SUM += $8} END { print SUM }' >> /home/billing/test
I am getting the only total of the all i need to print with all details
Source File
All-dum-sg--Oc-14-2018 261 dummy server1_root_Silver dummy 0134B TDEV 151451... (4 Replies)
Discussion started by: ranjancom2000
4 Replies
LEARN ABOUT MOJAVE
tk_setinternalborderex
Tk_GeometryRequest(3) Tk Library Procedures Tk_GeometryRequest(3)__________________________________________________________________________________________________________________________________________________NAME
Tk_GeometryRequest, Tk_SetMinimumRequestSize, Tk_SetInternalBorder, Tk_SetInternalBorderEx - specify desired geometry or internal border
for a window
SYNOPSIS
#include <tk.h>
Tk_GeometryRequest(tkwin, reqWidth, reqHeight)
Tk_SetMinimumRequestSize(tkwin, minWidth, minHeight)
Tk_SetInternalBorder(tkwin, width)
Tk_SetInternalBorderEx(tkwin, left, right, top, bottom)
ARGUMENTS
Tk_Window tkwin (in) Window for which geometry is being requested.
int reqWidth (in) Desired width for tkwin, in pixel units.
int reqHeight (in) Desired height for tkwin, in pixel units.
int minWidth (in) Desired minimum requested width for tkwin, in pixel units.
int minHeight (in) Desired minimum requested height for tkwin, in pixel units.
int width (in) Space to leave for internal border for tkwin, in pixel units.
int left (in) Space to leave for left side of internal border for tkwin, in pixel units.
int right (in) Space to leave for right side of internal border for tkwin, in pixel units.
int top (in) Space to leave for top side of internal border for tkwin, in pixel units.
int bottom (in) Space to leave for bottom side of internal border for tkwin, in pixel units.
_________________________________________________________________DESCRIPTION
Tk_GeometryRequest is called by widget code to indicate its preference for the dimensions of a particular window. The arguments to
Tk_GeometryRequest are made available to the geometry manager for the window, which then decides on the actual geometry for the window.
Although geometry managers generally try to satisfy requests made to Tk_GeometryRequest, there is no guarantee that this will always be
possible. Widget code should not assume that a geometry request will be satisfied until it receives a ConfigureNotify event indicating
that the geometry change has occurred. Widget code should never call procedures like Tk_ResizeWindow directly. Instead, it should invoke
Tk_GeometryRequest and leave the final geometry decisions to the geometry manager.
If tkwin is a top-level window, then the geometry information will be passed to the window manager using the standard ICCCM protocol.
Tk_SetInternalBorder is called by widget code to indicate that the widget has an internal border. This means that the widget draws a deco-
rative border inside the window instead of using the standard X borders, which are external to the window's area. For example, internal
borders are used to draw 3-D effects. Width specifies the width of the border in pixels. Geometry managers will use this information to
avoid placing any children of tkwin overlapping the outermost width pixels of tkwin's area.
Tk_SetInternalBorderEx works like Tk_SetInternalBorder but lets you specify different widths for different sides of the window.
Tk_SetMinimumRequestSize is called by widget code to indicate that a geometry manager should request at least this size for the widget.
This allows a widget to have some control over its size when a propagating geometry manager is used inside it.
The information specified in calls to Tk_GeometryRequest, Tk_SetMinimumRequestSize, Tk_SetInternalBorder and Tk_SetInternalBorderEx can be
retrieved using the macros Tk_ReqWidth, Tk_ReqHeight, Tk_MinReqWidth, Tk_MinReqHeight, Tk_MinReqWidth, Tk_InternalBorderLeft, Tk_Internal-
BorderRight, Tk_InternalBorderTop and Tk_InternalBorderBottom. See the Tk_WindowId manual entry for details.
KEYWORDS
geometry, request
Tk 8.4 Tk_GeometryRequest(3)