![]() |
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 |
| AWK (NAWK) and filtering values | Nicol | UNIX for Dummies Questions & Answers | 11 | 04-23-2008 05:40 AM |
| awk/nawk returning decimal values? | moutaye | Shell Programming and Scripting | 1 | 03-25-2008 03:04 PM |
| awk/nawk returning decimal values? | moutaye | SUN Solaris | 1 | 03-25-2008 03:02 PM |
| is it possible to pass external variable values to nawk? | swamymns | Shell Programming and Scripting | 1 | 02-02-2006 06:13 AM |
| nawk and variables | plimpix | Shell Programming and Scripting | 8 | 07-11-2005 12:56 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
i'm new to shell scripting and have a problem please help me
in the script i have a nawk block which has a variable count nawk{ . . . count=count+1 print count } now i want to access the value of the count variable outside the awk block,like.. Code:
s=`expr count / m` i came across how to access shell variables inside the awk block,but is it possible to access the values of awk variables outside the awk block? please help me thanks in advance. Last edited by Yogesh Sawant; 05-13-2008 at 09:57 AM.. Reason: added code tags |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|