Sponsored Content
Top Forums Shell Programming and Scripting Combining columns from multiple files into one single output file Post 302786121 by vfrg on Wednesday 27th of March 2013 12:43:01 AM
Old 03-27-2013
I tried Paste but it is not giving the result as expected...

Output File: output.txt
-----------------------
Information_a1:Information_b1:Information_c1
Information_a2:Information_b2:Information_c2
:Information_b3:Information_c3
:Information_b4:Information_c4
::Information_c5
::Information_c6

But Paste is giving:

Output File: output.txt
-----------------------
Information_a1:Information_b1:Information_c1
Information_a2:Information_b2:Information_c2
Information_b3:Information_c3
Information_b4:Information_c4
Information_c5
Information_c6
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Filtering issues with multiple columns in a single file

Hi, I am new to unix and would greatly appreciate some help. I have a file containing multiple colums containing different sets of data e.g. File 1: John Ireland 27_December_69 Mary England 13_March_55 Mike France 02_June_80 I am currently using the awk... (10 Replies)
Discussion started by: crunchie
10 Replies

2. Shell Programming and Scripting

Combining columns from multiple files to one file

I'm trying to combine colums from multiple file to a single file but having some issues, appreciate your help. The filenames are the same except for the extension, path1.m0 --------- a b c d e f g h i path1.m1 --------- m n o p q r s t u File names are path1.m The... (3 Replies)
Discussion started by: rkmca
3 Replies

3. Programming

PERL:Combining multiple lines to single line

Hi All I need a small help for the below format in making a small script in Perl or Shell. I have a file in which a single line entries are broken into three line entries. Eg: I have a pen and notebook. All i want is to capture in a single line in a separate file. eg: I have a pen and... (4 Replies)
Discussion started by: Kalaiela
4 Replies

4. Shell Programming and Scripting

Awk match multiple columns in multiple lines in single file

Hi, Input 7488 7389 chr1.fa chr1.fa 3546 9887 chr5.fa chr9.fa 7387 7898 chrX.fa chr3.fa 7488 7389 chr21.fa chr3.fa 7488 7389 chr1.fa chr1.fa 3546 9887 chr9.fa chr5.fa 7898 7387 chrX.fa chr3.fa Desired Output 7488 7389 chr1.fa chr1.fa 2 3546 9887 chr5.fa chr9.fa 2... (2 Replies)
Discussion started by: jacobs.smith
2 Replies

5. UNIX for Dummies Questions & Answers

Need help combining txt files w/ multiple lines into csv single cell - also need data merge

:confused:Hello -- i just joined the forums. I am a complete noob -- only about 1 week into learning how to program anything... and starting with linux. I am working in Linux terminal. I have a folder with a bunch of txt files. Each file has several lines of html code. I want to combine... (2 Replies)
Discussion started by: jetsetter
2 Replies

6. Shell Programming and Scripting

Using a single "find" cmd to search for multiple file types and output individual files

Hi All, I am new here but I have a scripting question that I can't seem to figure out with the "find" cmd. What I am trying to do is to only have to run a single find cmd parsing the directories and output the different file types to induvidual files and I have been running into problems.... (3 Replies)
Discussion started by: swaters
3 Replies

7. Shell Programming and Scripting

Compare columns of multiple files and print those unique string from File1 in an output file.

Hi, I have multiple files that each contain one column of strings: File1: 123abc 456def 789ghi File2: 123abc 456def 891jkl File3: 234mno 123abc 456def In total I have 25 of these type of file. (5 Replies)
Discussion started by: owwow14
5 Replies

8. Shell Programming and Scripting

Join two files combining multiple columns and produce mix and match output

I would like to join two files when two columns in each file matches with each other and then produce an output when taking multiple columns. Like I have file A 1234,ABCD,23,JOHN,NJ,USA 2345,ABCD,24,SAM,NY,USA 5678,GHIJ,24,TOM,NY,USA 5678,WXYZ,27,MAT,NJ,USA and file B ... (2 Replies)
Discussion started by: mady135
2 Replies

9. Shell Programming and Scripting

Combining certain columns of multiple files into one file

Hello Unix gurus, I have a large number of files (say X) each containing two columns of data and the same number of rows. I would like to combine these files to create a unique merged file containing X columns corresponding to the second column of each file (with a bonus of having the first... (3 Replies)
Discussion started by: ksennin
3 Replies

10. UNIX for Beginners Questions & Answers

Output file name and file contents of multiple files to a single file

I am trying to consolidate multiple information files (<hostname>.Linux.nfslist) into one file so that I can import it into Excel. I can get the file contents with cat *Linux.nfslist >> nfslist.txt. I need each line prefaced with the hostname. I am unsure how to do this. --- Post updated at... (5 Replies)
Discussion started by: Kentlee65
5 Replies
PARSEWIKI(1)							   User Commands						      PARSEWIKI(1)

NAME
parsewiki - transform marked text into HTML, XHTML, Docbook or LaTeX SYNOPSIS
parsewiki [OPTION]... [FILE] DESCRIPTION
This manual page documents briefly the parsewiki command. This manual page was written for the Debian distribution because the original program does not have a manual page. parsewiki is a program that transform a text file with a very minimal Wiki style syntax into other formats, including HTML, XHTML, Docbook and LaTeX. See the file /usr/share/doc/parsewiki/doc/manual-en.txt for a description of the parsewiki syntax. OPTIONS
-f, --format=FORMAT Output format; one of html, xhtml, docbook, latex. (default html) -T, --title=TITLE Title. -t, --template=FILE File with a template to use instead of the standard. -c, --copyright Display copyright and copying permission statement. -h, --help Show this usage summary. FILE is a simple text file with wiki formating syntax. The result will be sent to the Standard Output. If FILE is not given, input will be taken from the Standard Input. EXAMPLES
$ parsewiki myfile.wiki $ cat file.txt | parsewiki -fdocbook --title="An Example" > file.xml BUGS
Report bugs to <villate@gnu.org>. AUTHOR
This manual page was written by Sergio Talens-Oliag <sto@debian.org>, for the Debian project (but may be used by others). parsewiki 0.4.3 July 2003 PARSEWIKI(1)
All times are GMT -4. The time now is 08:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy