Sponsored Content
Top Forums Shell Programming and Scripting Adding content of two file in a single file column wise Post 302680657 by pamu on Thursday 2nd of August 2012 06:53:55 AM
Old 08-02-2012
already provided..Smilie

Last edited by pamu; 08-02-2012 at 08:00 AM.. Reason: already provided.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Adding filename into file content

Dear Experts, Please help to teach me how to add the filename into the file content. Actually the file name are EVENTS-20050912. ***************New output that I want*************** EVENTS-20050912 03:33:37 ALARM: BTSSPAN-277-1 30-18013 EVENTS-20050912 12:10:28 ALARM: BTSSPAN-297-2... (1 Reply)
Discussion started by: missutoomuch
1 Replies

2. Shell Programming and Scripting

Column wise file parsing.

Shell script for the below operation : File "A" contains : SEQ++1' MOA+9:000,00:ABC' RFF+AIK:000000007' FII+PH+0170++AA' NAD+PL+++XXXXXXXXXXX XXXXXXX XX++XXX XXXX XXXX X.X. XXXXXXXXX+++NL' SEQ++2' MOA+9:389,47:ABC' RFF+AIK:02110300000008' FII+PH+0PSTBNL2A:25:5+BB'... (5 Replies)
Discussion started by: navojit dutta
5 Replies

3. Solaris

column wise substitution in a file

Hi, I have two files. Want to make an addition of the fifth column of from both the files and redirect it to a third file. Both files have same records except fifth field and same record should be inserted into new file having fifth field as addition of fifth fields of both files. for... (2 Replies)
Discussion started by: sanjay1979
2 Replies

4. Shell Programming and Scripting

Search a file column wise and delete it

i have a file which has a column that is unique i am intending to serach it and if it is there to remove the row. the file looks like ROLLNO,NAME ,SUB1,SUB2,SUB3,TOTAL,PERCENTAGE,RESULT 15 ,rig ,34 ,56 ,87 ,177 ,59 % ,PASS 23 ,wel ,45 ,76 ,56 ,177 ,59 % ... (0 Replies)
Discussion started by: gotam
0 Replies

5. Shell Programming and Scripting

Search a file column wise and delete it

Scottn, m really sorry but i have not got my answer yet. my concern is how to delete the row !!! i have a file which has a column that is unique i am intending to serach it and if it is there to remove the row. the file looks like ROLLNO,NAME ,SUB1,SUB2,SUB3,TOTAL,PERCENTAGE,RESULT... (9 Replies)
Discussion started by: gotam
9 Replies

6. UNIX for Dummies Questions & Answers

Adding the content of file in another one...

This might be a weird question, that's not possible, but just wondering: If I have a file for example that has the content: awk '{print "head - "$1" > reduce_lines_"$1}' all And another file that has the content: 221 Is there a way to put the 221 in the space (after head -) of... (27 Replies)
Discussion started by: cosmologist
27 Replies

7. Red Hat

How to find a garbage entry in a column wise text file in Linux?

Suppose I have a file containing :- 1 Apple $50 2 Orange $30 3 Banana $10 4 Guava $25 5 Pine@apple $12 6 Strawberry $21 7 Grapes $12 In the 5th row, @ character inserted. I want through sort command or by any other way this row should either on top or bottom. By sort command garbage... (1 Reply)
Discussion started by: Dipankar Mitra
1 Replies

8. Shell Programming and Scripting

Column wise text adding

Hi I have pasted sample data as below:- in data.txt Please suggest any way out: as the 3rd field is cat data.txt 22:37:34 STARTING abc 22:37:40 FAILURE sadn 00:06:42 STARTING asd 00:06:51 FAILURE ad 02:06:38 STARTING acs 02:06:46 FAILURE cz 04:06:35 STARTING xzc... (1 Reply)
Discussion started by: Gaurav198
1 Replies

9. Shell Programming and Scripting

Adding single value from one file into column of second file

I have two files with the following content: file1.txt looks like this (it always only have one single row): ABC file.txt looks like this (may have tons of rows): 123 456 789 I want to make a bash script that gives the following output: ABC 123 ABC 456 ABC 789 So it takes the... (9 Replies)
Discussion started by: Zooma
9 Replies

10. Shell Programming and Scripting

Paste 2 single column files to a single file

Hi, I have 2 csv/txt files with single columns. I am trying to merge them using paste, but its not working.. output3.csv: flowerbomb everlon-jewelry sofft steve-madden dolce-gabbana-watchoutput2.csv: http://www1.abc.com/cms/slp/2/Flowerbomb http://www1.abc.com/cms/slp/2/Everlon-Jewelry... (5 Replies)
Discussion started by: ajayakunuri
5 Replies
XmConvertUnits(library call)											      XmConvertUnits(library call)

NAME
XmConvertUnits -- A function that converts a value in one unit type to another unit type SYNOPSIS
#include <Xm/Xm.h> int XmConvertUnits( Widget widget, int orientation, int from_unit_type, int from_value, int to_unit_type); DESCRIPTION
XmConvertUnits converts the value and returns it as the return value from the function. For resources of type, dimension, or position, you can specify units using the syntax described in the XmNunitType resource of the XmPrimitive reference page. widget Specifies the widget for which the data is to be converted. orientation Specifies whether the converter uses the horizontal or vertical screen resolution when performing the conversions. The orienta- tion parameter can have values of XmHORIZONTAL or XmVERTICAL. from_unit_type Specifies the current unit type of the supplied value from_value Specifies the value to be converted to_unit_type Converts the value to the unit type specified The parameters from_unit_type and to_unit_type can have the following values: XmPIXELS All values provided to the widget are treated as pixel values. This is the default for the resource. XmMILLIMETERS All values provided to the widget are treated as millimeter values. Xm100TH_MILLIMETERS All values provided to the widget are treated as 1/100 of a millimeter. XmCENTIMETERS All values provided to the widget are treated as centimeter values. XmINCHES All values provided to the widget are treated as inch values. Xm1000TH_INCHES All values provided to the widget are treated as 1/1000 of an inch. XmPOINTS All values provided to the widget are treated as point values. A point is a unit used in text processing applications and is defined as 1/72 of an inch. Xm100TH_POINTS All values provided to the widget are treated as 1/100 of a point. A point is a unit typically used in text processing applica- tions and is defined as 1/72 of an inch. XmFONT_UNITS All values provided to the widget are treated as normal font units. A font unit has horizontal and vertical components. These are the values of the XmScreen resources XmNhorizontalFontUnit and XmNverticalFontUnit. Xm100TH_FONT_UNITS All values provided to the widget are treated as 1/100 of a font unit. A font unit has horizontal and vertical components. These are the values of the XmScreen resources XmNhorizontalFontUnit and XmNverticalFontUnit. RETURN
Returns the converted value. If a NULL widget, incorrect orientation, or incorrect unit_type is supplied as parameter data, 0 (zero) is returned. RELATED
XmPrimitive, XmSetFontUnits(3), and XmScreen(3). XmConvertUnits(library call)
All times are GMT -4. The time now is 07:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy