![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to execute local function in awk | krishna_gnv | Shell Programming and Scripting | 1 | 06-19-2008 11:11 AM |
| How to make variables in script function local? | alex_5161 | Shell Programming and Scripting | 5 | 03-07-2008 02:03 PM |
| function call | kamel.seg | Shell Programming and Scripting | 2 | 12-28-2007 02:58 PM |
| call function | Jamil Qadir | Shell Programming and Scripting | 4 | 03-20-2007 05:07 AM |
| function call | forever_49ers | Shell Programming and Scripting | 3 | 09-13-2006 06:26 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi,
I have the following statement which parses a string for me and prints it out: l_comp="dc000.runksh.test.ksh| $g_sql/dc0000.runksh_test.sql|new.dat|control.ctl" echo $l_comp | awk -F"|" '{ for ( i = 1; i <= NF; i++) { print $i; } } ' Rather then printing the data, I would like to pass the value to a local function like this, but it is not working. echo $l_comp | awk -F"|" '{ for ( i = 1; i <= NF; i++) { lf_verify_component $i; } } ' Can someone point to what I am doing wrong and how I can correct? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|