04-04-2012
You want row 2 (etc) subtracted from row 1, or row 1 subtracted from row 2?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: aYankeeFan
9 Replies
2. Shell Programming and Scripting
I have a requirement in which i have to read a file which has multiple columns seperated by a pipe "|" from this i have to read each column values seperately and create a comma seperated row for the column and write to another file.
eg:
Input file:
ColA ColB
1 2
2 x
3 y... (5 Replies)
Discussion started by: nvuradi
5 Replies
3. Shell Programming and Scripting
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)
Discussion started by: jsaravana
17 Replies
4. Shell Programming and Scripting
Hello,
I have an input file like the following:
11_3_4
2_1_35
3_15__
_16989
Where '_' is a space. The data is in a table. Is there a way for the program to prompt the user for x1,y1 and x2,y2, where x1,y1 is the desired number (for example x=6 y=4 is a value of 4) and move to a desired spot... (2 Replies)
Discussion started by: jl487
2 Replies
5. Shell Programming and Scripting
I am a newbie to shell scripting ..
I have a .csv file. It has 1000 some rows and about 7 columns...
but before I insert this data to a table I have to parse it and clean it ..basing on the value of the first column..which a string of phone number type...
example below..
column 1 ... (2 Replies)
Discussion started by: mitr
2 Replies
6. Shell Programming and Scripting
Hi,
Can anyone suggest quick way to get desired output?
Sample input file content:
A 12 9
A -0.3 2.3
B 1.0 -4
C 34 1000
C -111 900
C 99 0.09
Output required:
A 12 9 -0.3 2.3
B 1.0 -4
C 34 1000 -111 900 99 0.09
Thanks (3 Replies)
Discussion started by: cbm_000
3 Replies
7. UNIX for Dummies Questions & Answers
Hi! Is there a way to append column and row header to a file in awk script.
For example if I have
Jane F 39 manager
Carlos M 40 system administrator
Sam F 20 programmer
and I want it to be
# name gend age occup
1 Jane F 39 manager
2 Carlos M ... (4 Replies)
Discussion started by: FUTURE_EINSTEIN
4 Replies
8. UNIX for Dummies Questions & Answers
file with this content
awk 'NR==1 {print $4} && NR==2 {print $5}' file
The error is shown with syntax error; what can be done (4 Replies)
Discussion started by: cdfd123
4 Replies
9. Shell Programming and Scripting
Dear All,
I have input :
SEG901 5173 9005 5740
SEG902 5227 5284
SEG903 5284 5346
SEG904 5346 9010
SEG905 5400 5456
SEG906 5456 5511
SEG907 5511 9011
SEG908 5572 9015
SEG909 5622 9020
SEG910 5678 5739
SEG911 5739 5796
SEG912 5796 9025 ... (3 Replies)
Discussion started by: attila
3 Replies
10. Shell Programming and Scripting
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)
Discussion started by: kotra
4 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.
marginHeight
marginWidth
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 Routines
XmCreateButtonBox
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)