|
|
|
|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | 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. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
help function
i have a file like :
File1 var1,var2,var3 var4,var5,var6 var7,var7,var8 . . . $3 : var3,var6,var8, may be null in this file so when it's nul i get the information from a function serach () which return $var i want to print it in $3 i do like that : awk -F "," '{ {first=$1; sec=$2; tro=$3 } if (tro == "") { search ( parametre) {print $1","$2","$var} } else {print $1","$2","$3 }}' $file1 > $file but i doesn't print $var in $file. any help please |
| Sponsored Links |
|
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Passing global variable to a function which is called by another function | sars | Shell Programming and Scripting | 4 | 06-30-2008 12:39 PM |
| function help | coolkid | Shell Programming and Scripting | 2 | 05-01-2008 02:47 PM |
| Log function | Ernst | Shell Programming and Scripting | 17 | 03-19-2007 12:31 PM |
| Function within function (Recurance) | chassis | UNIX for Dummies Questions & Answers | 2 | 09-19-2006 10:32 AM |
| How to convert the "select" function into a "poll" function | rbolante | Programming | 1 | 07-10-2001 11:49 AM |