The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-24-2007
dhanamurthy dhanamurthy is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 105
Want to understand the meaning of the following line

HI All
Please find the code below from a script called test.sh

echo "Hello World"
. test_common.lib
get_info


in the file test_common.lib i have the following contents

get_info()
{
c_cnt=0;
cm="";
echo "Inside get_info"
}

when i run the script test.sh

i get a error message

test.sh: line 3: get_info: command not found

First of all i would like to know how this line behaves
"test_common.lib"


Regards
Dhanamurthy