![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| 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 08:39 AM |
| function help | coolkid | Shell Programming and Scripting | 2 | 05-01-2008 10:47 AM |
| Log function | Ernst | Shell Programming and Scripting | 17 | 03-19-2007 08:31 AM |
| Function within function (Recurance) | chassis | UNIX for Dummies Questions & Answers | 2 | 09-19-2006 06:32 AM |
| How to convert the "select" function into a "poll" function | rbolante | High Level Programming | 1 | 07-10-2001 07:49 AM |
|
|
LinkBack | Thread Tools | 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 |
| Forum Sponsor | ||
|
|
| Thread Tools | |
| Display Modes | |
|
|