![]() |
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 |
| 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 |
| noob help needed | ace_face | Linux | 1 | 04-20-2008 08:23 PM |
| Unix Noob, wat do i need etc | skylin3fr3ak | UNIX for Dummies Questions & Answers | 2 | 02-24-2008 11:17 AM |
| complete unix noob (sorry) | Blastman | UNIX for Dummies Questions & Answers | 2 | 12-23-2007 10:34 PM |
| I am a unix noob | alt+f4 | UNIX for Dummies Questions & Answers | 4 | 04-28-2006 09:01 PM |
| Noob learning Unix: backup commands | lotusx | UNIX for Dummies Questions & Answers | 1 | 06-28-2005 01:50 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
unix noob help with awk?
Hi
I'm really new to this so sorry if this is trivial What I'm trying to do is take a file with 3 columns of numbers and cat all the entries of the second and third columns which have the same entry in the first column into a file with the number from the first column in the name. So say 1 3 4 1 3 5 1 4 6 > something1.txt 2 3 5 2 5 7 > something2.txt Tried using awk but I'm not very good ![]() |
|
||||
|
And if I wanted to use the input filename in the output file's names? How owuld I do that?
I have the whole thing in a big script: cat listoffilenames | while read line; do awk{the stuff above but also want the $line name in here too but it doesnt evaluated $line for me, instead prints $line} $line |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|