![]() |
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 |
| c function calling from a pearl script | jisha | Shell Programming and Scripting | 2 | 04-02-2008 06:50 AM |
| Help needed to Keep calling a function after every 5 seconds. | nua7 | Shell Programming and Scripting | 11 | 03-25-2008 08:08 AM |
| calling one function from another shell script | trichyselva | UNIX for Dummies Questions & Answers | 1 | 01-17-2008 12:28 AM |
| urgent calling function from a script | jisha | Shell Programming and Scripting | 2 | 01-09-2008 02:40 PM |
| calling c++ function from script | Lebamb | High Level Programming | 3 | 06-24-2003 10:53 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Help needed in function calling in a script
Hi ,I have a script as shown below: rpttxt() { name="$*" awk '/'"${name}"'/ {print $2 $3"=" $4}' file.txt } xx = rpttxt "COL_HEAD_1" awk 'BEGIN {printf("%36s \n ","'"$xx"'")}' rpttxt() is a function..I want to store the final result of this function in the variable "xx" and print this in a specific format.. When i run this script i get an error : line 8: xx: command not found Is their any error in calling the function ..? Thanks in advance JS |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|