![]() |
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 |
| get sysname with getline in awk | timj123 | Shell Programming and Scripting | 2 | 02-24-2008 10:43 PM |
| NAWK getline function | Raynon | Shell Programming and Scripting | 5 | 11-28-2007 03:30 AM |
| awk getline help maybe? | chlawren | Shell Programming and Scripting | 0 | 10-24-2007 10:56 AM |
| utility of getline here? | remid1985 | UNIX for Dummies Questions & Answers | 3 | 11-12-2006 01:38 PM |
| awk:Problem with getline | Klashxx | Shell Programming and Scripting | 3 | 05-12-2006 06:24 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
Sorry, I am taking the input and extracting $1, $2, $3, and $5. Using this information to create an output file that will add user data for generation into a mysql database.
I have been tasked to bring the limping version of the script into a production environment. It is a disaster, about 250 lines of code, 8 loops mixed with if conditions, and about 30 separate awk statements all piped with about 4 or 5 commands each. I have a light bulb idea of a better way to do it, but am still pretty new. |
|
|||||
|
If I awk it I will have $1 entered four times. What I am looking for is a way for within an awk script to have it return only one instance of $1. I was thinking a getline and then an if statement with a condition of $1 == $previous1 or something. But I am still working on the details.
|
|
|||||
|
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|