Sponsored Content
Full Discussion: add columns with awk
Top Forums Shell Programming and Scripting add columns with awk Post 75526 by tonet on Monday 20th of June 2005 08:02:25 AM
Old 06-20-2005
Computer

when i put file1, this mean that this field comes from other file, and file2 from other.
i want add columns, and these new columns come from other file.
thanks Smilie
tonet
 

10 More Discussions You Might Find Interesting

1. Emergency UNIX and Linux Support

awk- add columns and make new column and save as newfile

Hi, I have file as below: 5 6 7 4 8 9 3 5 6 output needs to be another file with 4th column as $1+$2 and 5th column as $3+$4. sample output file 5 6 7 11 18 4 8 9 12 21 3 5 6 8 14 Anybody have answer Thanks in advance (3 Replies)
Discussion started by: vasanth.vadalur
3 Replies

2. Shell Programming and Scripting

Single command for add 2 columns and remove 2 columns in unix/performance tuning

Hi all, I have created a script which adding two columns and removing two columns for all files. Filename: Cust_information_1200_201010.txt Source Data: "1","Cust information","123","106001","street","1-203 high street" "1","Cust information","124","105001","street","1-203 high street" ... (0 Replies)
Discussion started by: onesuri
0 Replies

3. Shell Programming and Scripting

AWK : Add columns in the end of csv file

Hi everybody, I need some help please I have a csv file named masterFile1.csv header1,header2,header3 value1,value2,value3 value4,value5,value6 I am trying to add new columns in the end of the csv to have a new csv file named masterFile2.csv like this :... (3 Replies)
Discussion started by: villebonnais
3 Replies

4. Shell Programming and Scripting

How to add columns based on a pattern using awk?

Hi, I have a file with more than 1000 lines with ~14 columns. I need to find all the lines with matching value in column 14 and then add column 6 in all the lines before printing them out.. e.g if this is the input file: abc test input 10 for process 2345 abc test input 15 for process 2348... (1 Reply)
Discussion started by: xkdasari
1 Replies

5. UNIX for Dummies Questions & Answers

awk to add/subtract an integer to/from each entry in columns?

---------- Post updated at 01:58 PM ---------- Previous update was at 01:48 PM ---------- For some reason my question is not getting printed. Here are the details: Greetings. I would like to add/subtact an integer to/from two columns of integers. I feel like this should be easy using awk... (3 Replies)
Discussion started by: Twinklefingers
3 Replies

6. UNIX for Dummies Questions & Answers

Help with awk solution to add columns

Hi all. Wondering if someone can help with an awk solution to a problem I'm stumped with. I have a matrix file with >1000 fields and would like to add another column after each column with a text label. For example: Input: $cat file.txt name col1 col2 col3 coln aaaa ... (2 Replies)
Discussion started by: torchij
2 Replies

7. Shell Programming and Scripting

Add 8 columns at the end of .csv file using awk

Hello all, I have a .csv file of 16 columns consists of bunch of numbers. 6.45E+01 1.17E+01 8.10E+04 8.21E+01 8.50E+00 1.20E+01 1.02E+01 1.88E+01 1.86E+04 3.53E+03 1.09E+07 3.82E+04 2.09E+03 3.57E+03 2.98E+03 3.93E+03 6.34E+01 3.23E+01 9.24E+04 ... (5 Replies)
Discussion started by: Zam_1234
5 Replies

8. Shell Programming and Scripting

Evaluate 2 columns, add sum IF two columns satisfy the condition

HI All, I'm embedding SQL query in Script which gives following output: Assignee Group Total ABC Group1 17 PQR Group2 5 PQR Group3 6 XYZ Group1 10 XYZ Group3 5 I have saved the above output in a file. How do i sum up the contents of this output so as to get following output: ... (4 Replies)
Discussion started by: Khushbu
4 Replies

9. Shell Programming and Scripting

Add character to specific columns using sed or awk and make it a permanent change

Hi, I am writing a shell script where I want that # should be added in all those lines as the first character where the pattern matches. file has lot of functions defined a.sh #!/bin/bash fn a { beautiful evening sunny day } fn b { } fn c { hello world .its a beautiful day ... (12 Replies)
Discussion started by: ashima jain
12 Replies

10. Shell Programming and Scripting

awk add all columns if column 1 name matches

Hi - I want to add all columns if column1 name matches. TOPIC1 5 1 4 TOPIC2 3 2 1 TOPIC3 7 2 5 TOPIC1 6 3 3 TOPIC2 4 1 3 TOPIC3 9 5 4 . . . . . . . . . . . . Result should look like TOPIC1 11 4 7 TOPIC2 7 3 4 (1 Reply)
Discussion started by: oraclermanpt
1 Replies
RDF::Query::Functions::Xpath(3pm)			User Contributed Perl Documentation			 RDF::Query::Functions::Xpath(3pm)

NAME
RDF::Query::Functions::Xpath - XPath functions VERSION
This document describes RDF::Query::Functions::Xpath version 2.908. DESCRIPTION
Defines the following function: o http://www.w3.org/2005/xpath-functions#matches o http://www.w3.org/2005/xpath-functions#abs o http://www.w3.org/2005/xpath-functions#ceiling o http://www.w3.org/2005/xpath-functions#floor o http://www.w3.org/2005/xpath-functions#round o http://www.w3.org/2005/xpath-functions#round-half-to-even o http://www.w3.org/2005/xpath-functions#compare o http://www.w3.org/2005/xpath-functions#concat o http://www.w3.org/2005/xpath-functions#substring o http://www.w3.org/2005/xpath-functions#string-length o http://www.w3.org/2005/xpath-functions#upper-case o http://www.w3.org/2005/xpath-functions#lower-case o http://www.w3.org/2005/xpath-functions#encode-for-uri o http://www.w3.org/2005/xpath-functions#contains o http://www.w3.org/2005/xpath-functions#starts-with o http://www.w3.org/2005/xpath-functions#ends-with o http://www.w3.org/2005/xpath-functions#year-from-dateTime o http://www.w3.org/2005/xpath-functions#month-from-dateTime o http://www.w3.org/2005/xpath-functions#day-from-dateTime o http://www.w3.org/2005/xpath-functions#hours-from-dateTime o http://www.w3.org/2005/xpath-functions#minutes-from-dateTime o http://www.w3.org/2005/xpath-functions#seconds-from-dateTime o http://www.w3.org/2005/xpath-functions#timezone-from-dateTime AUTHOR
Gregory Williams <gwilliams@cpan.org>. perl v5.14.2 2012-01-31 RDF::Query::Functions::Xpath(3pm)
All times are GMT -4. The time now is 04:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy