Property file processing in unix

Hi genius,
Following is the problem.
We have one templete file(input file) where some variables will be used
Example:

word1 word2 &{word3}
word4 ${word5} word6

And also we have one property file where we define these variables
Example:

word3= something
Word5= something

Need to read the property file and read the variables there and generate output file

Example:

word1 word2 something
word4 something word6

Can you please give me a solutions for this?

Regards
Gjarms

We can help you once you start helping yourself.
What have you tried so far?

just source the file before which will be referenced

What is the difference between &{var} and ${var} ?

What is the syntax for word3= something ? Is something always a single "word"? Is everything after the "=" to the end of the line supposed to be part of the expansion of ${var} or &{var} ? Is the space in " something" important? (In your example, it appears that the space should be discarded, but since you didn't put code tags around in your posting, we can't tell if there are supposed to be multiple adjacent spaces in your desired output.)

Hi All,
first of all sorry for missing the code tags.
Answering to the questions, there is no diference between & and $. It was a typo and also there is no space after=. basically I was trying to do this using fmpp ant task, but not able to do it.

Ok, but again: What have you tried so far?