![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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! |
|
||||
|
I'm sorry! I found the cut and paste command about 12 seconds after posting.
|
| Sponsored Links | ||
|
|