![]() |
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 |
| Combining files horizontally | anshuljain | HP-UX | 3 | 03-14-2008 05:51 AM |
| Combining two files | hemangjani | Shell Programming and Scripting | 7 | 06-13-2007 10:32 PM |
| Combining Two Files | stevefox | Shell Programming and Scripting | 4 | 02-20-2006 05:09 AM |
| Combining Two Files | bat711 | Shell Programming and Scripting | 3 | 10-05-2005 01:26 PM |
| Combining files | Enda Martin | UNIX for Dummies Questions & Answers | 2 | 07-20-2001 10:31 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
combining files
how will i combine these 2 files below, with the desired output
specified below: file1: one two three four file2: red blue yellow green file3: aaa bbb ccc ddd desired output: (columns separated by tab) file4: one red aaa two blue bbb three yellow ccc four green ddd this is not a homework....job-related... thanks, alex |
|
||||
|
here is a shot in the dark. with out busting into perl or somethign (which i dont know)
would this logic work? 3 arrays (one for each file) stuff the namespaces in the arrays with contents of the files. spit out each namespace 1 at a time with a for or while loop. incrementing the array element at the end of each loop. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|