Hi,
I want to write a shell script which increments a particular column in a row from a text file and then adds another row below the current row with the incremented value .
For Eg .
if the input file has a row :
abc xyz lmn 89 lm nk o p
I would like the script to create something like... (9 Replies)
Dear all,
I have been trying to print an entire field, if the first line of the field is matching.
For example, my input looks something like this.
aaa ddd zzz
123 987 126
24 0.650 985
354 9864 0.32
0.333 4324 000
I am looking for a pattern,... (5 Replies)
Hi Friends,
I have a single column data like below.
1
2
3
4
5
I need the output like below.
0
1
2
3
4
where each row (including first row) subtracting from first row and the result should print below like the way shown in output file.
Thanks
Sid (11 Replies)
Hello Esteemed Members,
I need to write a script to search for files that have one or more than one rows similar.
Please note that there is no specific pattern that I am searching for. The rows can be different, I just need to find out two or more similar records in two or more files.
There... (7 Replies)
I do have a big text file with the following format with 9 columns tab delimited.
I would like to parse out the entire row if any of the columns 6, 7, 8 and 9 have non-zero numbers.
Following is the input file
513741 C 1053 389 389 0 6 0 269
513742 A ... (2 Replies)
My original files are like this below and I distinguish them from the AP_ID (file1 has 572 and file2 has 544). Also, the header on file1 has “G_” pre-pended. NOTE: these are only snippets of very large files and much of the data is not present here.
Original File 1:
... (36 Replies)
Hi ALL,
We have requirement in a file, i have multiple rows.
Example below:
Input file rows
01,1,102319,0,0,70,26,U,1,331,000000113200000011920000001212
01,1,102319,0,1,80,20,U,1,241,00000059420000006021
I need my output file should be as mentioned below. Last field should split for... (4 Replies)
This is a question that is related to one I had last August when I was trying to sort/merge two files by millsecond time column (in this case column 6).
The script (below) that helped me last august by RudiC solved the puzzle of sorting/merging two files by time, except it gets lost when the... (0 Replies)
Hi All ,
I have to write one Perl script in which I need to read one pre-existing xls and based on pattern match for one word in some cells of the XLS , I need to fill the entire row with one color of that matched cell and write the content to another excel
Please find the below stated... (2 Replies)
Discussion started by: kshitij
2 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)