Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Programming in Linux _ File Includes In Linux?

Posted by: dmilks Nov 16 2004, 12:43 PM

Hi. I'm wondering if you can do file includes in Linux. For example, say I have 2 files, A and B.

A looks like:

VAR1=""
#get contents of file B
ECHO $VAR1

B looks like:

VAR1="Hello World"

Is there a way to do this so that when file A is executed, the output will be "Hello World"?

Thanks!

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)