I have a CSV file that goes like this:
Basically my desired output should be:
I have tried using this code:
but I think this is only usable for a file with 2 columns, also is it possible to not include the headers in concatenating.
Thanks a lot!
Last edited by jeffreybsu; 10-22-2013 at 12:25 AM..
Reason: Use CODE tags not only for code, but also for input and output samples.
I'm trying to parse COBOL code to combine variables into one string. I have two variable names that get literals moved into them and I'd like to use sed, awk, or similar to find these lines and combine the variables into the final component. These variable names are always VAR1 and VAR2. For... (8 Replies)
i have a file which may have 'n' number of columns
1 222 fafda 32 afdaf 4343 4343
234 43fdaf 4343 fdd fdfd fdfd fdd fdfd fdfd
fdfd fdfd fdfd fdd fdfd fdfd
need to concatenate the columns with... (3 Replies)
Hi,
I have a file1.txt like this:
and a file2.txt like this:
I wat only append file2.txt to file1.txt
and to have something like this:
How could i do ? (2 Replies)
Hi all,
I want the 2nd column of every file in the directory in a single file with the file name as column header.
$cat file1.txt
a b c
d e f
$cat file2.txt
f g h
g h j
$cat file3.txt
a b d
f g h (2 Replies)
Hi
Need some help to concatenate files
I have multiple spool files nearlly 15 of them which I need to concatenate like as shown in the below example
for ex.
file1.txt
aaaa|bbbbb|cccc|
dddd|eeee|ffff|
kkkkk|uuuuu|gggg|
file2.txt
xxxx|yyyy|zzzz|
1111||kkkk|lllll... (2 Replies)
hi all
could you please help me to concatenate two colomns and separate them by "-"
the two colomns to concatenate are colomuns 1 and 3 of a very bif file
clomn 1 is chr, 2 is snp and 3 is bp
the new colomn is chr_B
input file :
1 rs1111 10583
1 rs1891 10611
1 rs1807 ... (13 Replies)
Hello,
I want to concatenate 2-columns by 2-columns separated by colon. How can I do so? For example, I have a text file containing 6 columns separated by tab. I want to concatenate column 1 and 2; column 3 and 4; column 5 and 6, respectively, and put a colon in between.
input file:
1 0 0 1... (10 Replies)
Hi
i am having one requirement like to concatenate two columns in to one columns, can any one help on this please sample scenario i am placing below
COL1,COL2,COL3,COL4
1,A,B,C,D
2,e,f,g,h
ouput should be 3 columns like below.
COL1,COL2,newcolumns
1,A,B,CD
2,e,f,gh
... (9 Replies)
Hi All,
need help...
I have some log below : ### {"request_id":"e8395eb0-a8bd-11e9-b77b-d507ea5312aa","message":"when inquiry paybill 628524871 prevalidation cause : Invalid Transaction"}
### {"request_id":"043f2310-a8be-11e9-b57b-f9c7344998d7","message":"when inquiry paybill 62821615... (2 Replies)
Discussion started by: fajar_3t3
2 Replies
LEARN ABOUT DEBIAN
lire::max
Max(3pm) LogReport's Lire Documentation Max(3pm)NAME
Lire::Max - Lire class that implements the max operator
SYNOPSIS
use Lire::Max
DESCRIPTION
Class that implements the max operator. This operator will find the minimum value appearing in a DLF field among a group of DLF records.
METHODS
new( %params )
Creates a new Lire::Max object.
SEE ALSO Lire::ReportSpec(3pm), Lire::ReportOperator(3pm), Lire::Aggregator(3pm), Lire::Aggregate(3pm).
AUTHOR
Francis J. Lacoste <flacoste@logreport.org>
VERSION
$Id: Max.pm,v 1.10 2008/03/09 19:27:31 vanbaal Exp $
COPYRIGHT
Copyright (C) 2001, 2002 Stichting LogReport Foundation LogReport@LogReport.org
This file is part of Lire.
Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with
http://www.gnu.org/copyleft/gpl.html.
Lire 2.1.1 2008-03-09 Max(3pm)