![]() |
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 |
| storing values in a list or array | KiranKumarKarre | Shell Programming and Scripting | 1 | 05-08-2009 01:50 AM |
| Storing Multiple Values in a Variable | sandeep_1105 | UNIX for Dummies Questions & Answers | 1 | 03-03-2009 01:10 AM |
| Storing Command Line Values | yoursdavinder | Shell Programming and Scripting | 3 | 01-30-2009 07:33 AM |
| Fetching unique values from file | shivi707 | UNIX Desktop for Dummies Questions & Answers | 1 | 01-09-2009 08:33 AM |
| Storing values in variable | matrixmadhan | Shell Programming and Scripting | 1 | 04-01-2005 02:56 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
fetching values using awk and storing into array
hi all
I am using awk utility to parse the file and fetching two different vaues from two different record of a record set. I am able to see the result, now i want to store the result and perform some check of each values form database to mark valid and invalid. could you please help me to write korn shell script. to fetch all values for first pattern from file: awk '/'"$PATTERN1"'/' $FILE |cut -f3 -d ' '|sed 's/ //g' to fetch all values for second pattern from file: awk '/'"$PATTERN2"'/' $FILE |cut -f3 -d ' '|sed 's/ //g' the output is coming like Pattern1 ABC DEF ABC KLM Pattern2 123 234 abc r4e etc. i need to call oracle store procedure to check for validaity of these values. Thanks in Advance Singhal |
|
||||
|
i want to pass both pattern values as arguments to a sql stored procedure for validation. i am aware about the sqlloader. i want to store both result set into array and access one by one both to validate. could you give me some example in KSH.
Thanks Singhal |
|
||||
|
Quote:
Regards |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|