The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 08-23-2008
redoubtable redoubtable is offline
Registered User
  
 

Join Date: Aug 2008
Location: Portugal
Posts: 242
(Talking about bash)

Yes, you can use those functions from another file if they have the correct syntax which is not the case.

For bash functions you could have a file say file_number_one.sh:
Code:
function func { echo "bla bla bla1"; }
and then from another script you could have:
Code:
. ./file_number_one.sh

func