![]() |
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 |
| pass variable from awk to shell script | user_prady | Shell Programming and Scripting | 3 | 04-17-2008 05:43 AM |
| Is it possible to pass variable from awk to shell back | unishiva | Shell Programming and Scripting | 12 | 03-03-2008 01:44 PM |
| How to pass Shell script variable to awk | HIMANI | UNIX for Dummies Questions & Answers | 3 | 07-16-2007 12:23 AM |
| How to Pass variable to shell Script | sam70 | UNIX for Dummies Questions & Answers | 5 | 08-23-2005 07:27 PM |
| How to pass a oracle variable back to the shell script | Jtrinh | UNIX for Dummies Questions & Answers | 3 | 07-11-2005 02:07 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Is it possible to pass variable from awk to shell script
Hello experts,
can I return a value from gawk to a shell script ? My script as follows, Code:
#Here I want the num[1] value to shell script so that I can use later
gawk '
{
split($0,num,",");
print num[1]
}'
gawk -v no=$number '{print no}'
Code:
000000,CB1F,0,0,0,0,1,0,1 Please help .... Last edited by user_prady; 12-18-2007 at 06:45 AM.. Reason: vB Code tags |
|
||||
|
Quote:
Yeah I saw that thread before I posted this thread , but I found nothing useful for my code or my need there. Thats why I posted my problem here. Regards, User_prady |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|