The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Changing one column of delimited file column to fixed width column manneni prakash Shell Programming and Scripting 5 06-22-2009 06:27 AM
Writing output into different files while processing file using AWK vidyak Shell Programming and Scripting 6 05-04-2009 02:49 PM
Column means for multiple files larrymuli Shell Programming and Scripting 3 01-08-2009 11:57 AM
Writing given value into a file in particular record and column shreekrishnagd Shell Programming and Scripting 4 11-19-2008 07:01 AM
Multiple processes writing on the same file simultaneously Sayantan Shell Programming and Scripting 1 01-23-2008 03:28 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 10-23-2009
subhap subhap is offline
Registered User
  
 

Join Date: Oct 2009
Location: Southern California
Posts: 6
Wink Writing out 2nd column into one file from multiple files

I have several files that are being generated every 20 minutes. Each file contains 2 columns. The 1st column is Text, 2nd column is Data.

I would like to generate one single file from all these files as follows:

One instance of 1st column Text, followed by 2nd column Data separated by Comma.

All files are of the same line length and have 2 columns of data.

example:
File #1 USER bob
WAIT 20
JOBS 2
DONE 9

File #2
USER john
WAIT 30
JOBS 4
DONE 3


File #3
USER lisa
WAIT 120
JOBS 7
DONE 4

Combined Single File:

USER bob, john, lisa
WAIT 20, 30, 120
JOBS 2, 4, 7
DONE 9, 3, 4

Thanks appreciate any help
-- Subha
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:17 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0