![]() |
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 |
| I need help with arrays in C Shell | domain | Shell Programming and Scripting | 5 | 11-19-2008 08:17 AM |
| shell / awk arrays | lochraven | Shell Programming and Scripting | 8 | 08-21-2008 12:18 PM |
| how to use arrays in c shell | hgphsf | Shell Programming and Scripting | 6 | 12-14-2007 02:03 PM |
| arrays in shell script | melanie_pfefer | Shell Programming and Scripting | 3 | 05-18-2007 08:36 AM |
| Bourne Shell and Arrays | Unbeliever | Shell Programming and Scripting | 2 | 07-25-2005 10:48 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Accessing shell arrays in awk
I am trying to pass a shell array I created to match on values amongst other things.
I have a sample: #! /bin/ksh i=0 for id in `cat id.lst` do IDs[$i]=$id (( i=i+1 )) done cat sqloutput.txt | awk -F, -v ids=$ID '{ # Do stuff }' But it looks as if I cannot do this. Is there any way I can pass this array into awk in my shell script. |
| Bookmarks |
| Tags |
| array, awk, passing, shell, variables |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|