The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

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 05:27 AM
To cut entire column from a file and apend it to another file as another column sakthifire Shell Programming and Scripting 4 06-25-2008 04:27 AM
copy contents of one column in another raman1605 Shell Programming and Scripting 4 05-12-2008 08:58 AM
How to check Null values in a file column by column if columns are Not NULLs Mandab Shell Programming and Scripting 7 03-15-2008 09:57 AM
extracting/copy a column into a new column folashandy UNIX for Advanced & Expert Users 1 02-21-2008 01:24 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-07-2008
penlok penlok is offline
Registered User
  
 

Join Date: Jul 2008
Location: San Jose, CA
Posts: 3
copy column to another file

Hi guys,

I want to use a quick one liner that can copy an entire column, and add it to a new file as another column. I've tried using cat, but that only appends my column to the bottom of the file.

So now, my first file(file1) looks like this:

1995060101 8
1995060102 6
1995060102 10

and so on, down through 2007123124. I want to take the second column, and add it to a new file(file 2), which currently looks like this:

1995060101 4
1995060102 3
1995060102 15

So in the end, I want file 2 to look like this:

1995060101 4 8
1995060102 3 6
1995060102 15 10

I've tried looking around the forums for help, but most of the copy column info seems to be about replacing current columns with others, not so much appending them.

thanks for any help you guys can offer!
  #2 (permalink)  
Old 07-07-2008
penlok penlok is offline
Registered User
  
 

Join Date: Jul 2008
Location: San Jose, CA
Posts: 3
I'm sorry! I found the cut and paste command about 12 seconds after posting.
Sponsored Links
Closed Thread

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 02:58 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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