![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| fuction return in perl | jisha | Shell Programming and Scripting | 4 | 05-15-2008 01:51 AM |
| Help Help Help in recursion | murtaza | Shell Programming and Scripting | 6 | 03-29-2007 07:26 AM |
| about memset fuction | ranj@chn | High Level Programming | 3 | 01-31-2006 04:59 AM |
| Get Oracle fuction return value in a variable | rahulrathod | UNIX for Dummies Questions & Answers | 3 | 04-14-2005 09:50 AM |
| recursion | gsjf | Shell Programming and Scripting | 1 | 08-25-2002 09:22 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Hey all,
Could you please check following way of writing awk is correct or not ??? ----------------------------------------------------------- Quote:
Its recursion being called. tempgrep.txt has : 462948 1311040 880922 tempfind.txt has : t2589vg 880922 462948 09:57:07 -ksh mqsiadm 1298856 1311040 09:57:56 -ksh mqsiadm 1311040 880922 09:57:19 -ksh Please suggust/correct the script(if wrong) !! Thanks Varun Last edited by varungupta; 02-08-2008 at 11:39 AM. |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
Thanks for reply Could you please tell me where i should mention -v option in awk, as awk is used twice in the code ? Now, how my script should look like ? Thanks, I did notice the typo error for pattern. Thanks anyways. And when i was running the above script then it given me error saying:Syntax error at line 11 : `(' is not expected. Please tell me. Last edited by varungupta; 02-08-2008 at 11:25 AM. |
|
|||
|
Quote:
I AM GETTING ERROR : AccessLogMonitorAdv_script[32]: 0403-057 Syntax error at line 57 : `(' is not expected. THEN NAME OF MY SCRIPT IS AccessLogMonitorAdv_script PLEASE SUGGEST SOLUTION TO THIS !! THANKS Varun. Last edited by varungupta; 02-14-2008 at 01:10 PM. |
|
|||
|
Quote:
Unix Gurus...Could you all please give me the solution to this script? |
|
|||
|
Hey,
I have a dummy script that is the base for the above script where I am getting the problem of syntax. Dummy script is working fine and is given below, but i dont know why the actual script is not working : ------------------------------------------------------------------- for var in 1 2 do echo "var : $var" count=0 while [ "$count" -lt 3 ] do echo "count : $count" awk 'BEGIN { i = 0 f(i) } function f(para) { if ( para < 10 ) { print "\n value of para : " para ; para += 1 ; f(para) ; } else { print "\n inside else, before increment, para : " para ; para += 1 ; print "\n inside else, para : " para ; exit ; } } ' let "count += 1" done done ------------------------------------------------------------------- Please have a look and suggest any solution to the problem. Thanks to all the unix bonds. Varun Gupta. |
|
|||
|
Quote:
Please provide some suggestion on this !! |
|||
| Google The UNIX and Linux Forums |