Hi,
I am having trouble converting a text file. I have been working for this whole day now, still i couldn't make it.
Here is how the text file looks:
_______________________________________________________
DEVICE STATUS INFORMATION FOR LOCATION 1:
OPER STATES: Disabled E:Enabled ... (5 Replies)
Hi,
I have a table in Db2 with data say
id_1 phase1
id_1 phase2
id_1 phase3
id_2 phase1
id_2 phase2
I need to concatenate the values like
id_1 phase1,phase2,phase3
id_2 phase1,phase2
I tried recursive query but in vain as the length of string to be concatenated in quite long. ... (17 Replies)
Hi, Please read the whole thread.
I have been working on this script below. It works fine, feel free to copy and test with the INPUT File below as well.
example:
PACKET DATA PROTOCOL CONTEXT DATA
APNID PDPADD EQOSID VPAA PDPCH PDPTY PDPID
10 ... (6 Replies)
Hi all!
I have this kind of output:
a1|b1|c1|d1|e1
a2|b2|c2
a3|b3|c3|d3
I would like to transpose columns d and e (when they exist) in column c, and under the row where they come from.
Then copying the beginning of the row.
In order to obtain:
a1|b1|c1
a1|b1|d1
a1|b1|e1
a2|b2|c2... (1 Reply)
Is it possible to modify file like this.
1. Remove all the duplicate names in a define column i.e 4th col
2. Count the no.of unique names separated by ";" and print as a 5th col
thanx in advance!!
Q
input
c1 30 3 Eh2
c10 96 3 Frp
c41 396 3 Ua5;Lop;Kol;Kol
c62 2 30 Fmp;Fmp;Fmp
... (5 Replies)
Hi would like to ask you guys any advise regarding my problem
I have this kind of data
file.txt
111111111,20
111111111,50
222222222,70
333333333,40
444444444,10
444444444,20
I need to get this
file1.txt
111111111,70
222222222,70
333333333,40
444444444,30
using this code I can... (6 Replies)
I am trying to change the number in bold to 2400
01,000300032,193631306,190619,0640,1,80,,2/
02,193631306,000300032,1,190618,0640,CAD,2/
I'm not sure if sed or awk is the answer. I was going to use sed and do a character count up to that point, but that column directly before 0640 might... (8 Replies)
Discussion started by: juggernautjoee
8 Replies
LEARN ABOUT REDHAT
xmbuttonbox
XmButtonBox(3X)XmButtonBox(3X)NAME
The Button Box widget
SYNOPSIS
#include <Xm/ButtonBox.h>
DESCRIPTION
The Button Box widget manages children (usually buttons) in a single row or single column layout.
The Button Box maintains equal spacing between its children at all times and attempts to adjust its height and width as necessary so that
all children will fit. If this is not possible, due to parent or application programmer constraints, the Button Box will resize its chil-
dren as necessary to fit within the available space.
Note: in what follows, major direction refers to the direction of orientation, and minor direction refers to the perpendicular direction.
Normal Resources
Name Class Type Initial Value
equalSize EqualSize Boolean False
fillOption FillOption unsigned char XmFillNone
marginHeight Margin VerticalDimension 0
marginWidth Margin HorizontalDimension 0
orientation Orientation unsigned char XmHORIZONTAL
All resource names begin with XmN and all resource class names begin with XmC.
equalSize
Specifies whether the children are to be maintained with equal sized heights and widths. The chosen height and width for the children is
found by asking each child for its preferred size and taking the largest value in each direction.
fillOption
Specifies how to use any extra space left over once all children have been sized according to either their preference or equalSize. There
are four options:
XmFillNone
No automatic filling is performed. Center the children in the minor direction and place the children with equal padding between them in the
major direction.
XmFillMinor
Place the children with equal padding between them in the major direction, but force all the children to take on the Button Box minor
dimension as their minor direction.
XmFillMajor
Center the children in the minor direction, but expand all the children in their major direction so that there is no padding between them.
Expand the children such that their relative sizes remain constant.
XmFillAll
This option combines the placement actions and sizing actions of XmFillMinor and XmFillMajor.
Regardless of the fill mode, the ButtonBox widget will always leave the specified margin between its edge and the nearest child. A new
String to fillOption resource converter has been registered to convert the following strings to fill options: "none", "major", "minor",
"all." This resource can therefore be set in an application defaults file.
marginHeightmarginWidth
Specifies the number of pixels to use as a margin around the entire group of children. The marginHeight value applies to both the top and
bottom margins, while the marginWidth applies to the left and right margins.
orientation
Specifies whether children are to be placed in a row or a column. The orientation may be either XmHORIZONTAL or XmVERTICAL. If the orienta-
tion is XmHORIZONTAL, the children are placed in a row with the major dimension being width and the minor dimension being height. If the
value is XmVERTICAL, the children are placed in a column with the major dimension being height and the minor dimension being width. The
default value is XmHORIZONTAL.
Convenience RoutinesXmCreateButtonBox
XmCreateButtonBox(
Widget parent, /* Widget id of parent for new ButtonBox */
String name, /* Name of the created widget */
ArgList args, /* argument list */
Cardinal num_args /* number of items in argument list */
)
Translations and Actions:
The Button Box manager inherits all of its translations and actions from its superclass.
COPYRIGHT
Copyright (c) 1992 by Integrated Computer Solutions, Inc.
XmButtonBox(3X)