![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| How to extract first column with a specific character | selamba_warrior | Shell Programming and Scripting | 3 | 05-22-2008 06:14 AM |
| How to extract only first column from the file | selamba_warrior | Shell Programming and Scripting | 11 | 05-21-2008 03:52 AM |
| column extract help | cvm | Shell Programming and Scripting | 1 | 04-24-2008 05:19 PM |
| Extract column data from File | sudheshnaiyer | UNIX for Dummies Questions & Answers | 3 | 10-11-2007 10:52 PM |
| extract column based on name | t27 | UNIX for Dummies Questions & Answers | 3 | 08-29-2007 02:04 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to extract a column from two different files in AWK?
Hi guys,
I need help in extracting one column of numbers from two different files and display it in a output file. In specific, I want to extrac the column no.2 ($2) from each file, file1.txt, file2.txt. Then place both extracted columns in a one file, out.txt. the line command I use to call the AWK code and the files is this: awk -f code.awk file1.txt file2.txt > out.txt code.awk I have is (and is worng! ): #Extracting columns # BEGIN {} #{print $2 < file1.txt , $2<file2.txt} END {} I appreciate a lot your kind help, solracq, |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|