I'm trying to import some functions I have saved in a file named
functions.sh into a different script (protocol.sh). Can anybody show
me how to do this? I tried source functions.sh as I would do at the
terminal but source command cannot be found from within the script
protocol.sh.
Frankly I did this but tried to execute protocol.sh with sh rather than bash, and thus I was getting the error message "function: not found". Silly me! Thanks for the help!