Hi all,
I have a basic shell script question.
Say I have a variable called test.
I already have a value in test = 'monkey'
How do I append another value taken from a file, to this variable?
For example, I wanted to get a value called 'dog' from a file called 'animals', and append dog to the test variable, so that it has the values 'dog monkey' in it.
To make it short :
test = 'monkey'
I wanted to get another value (dog) from a file, and append it to test so I get :
test = 'monkey dog'
Appreciate all your help!
Thanks
I have a basic shell script question.
Say I have a variable called test.
I already have a value in test = 'monkey'
How do I append another value taken from a file, to this variable?
For example, I wanted to get a value called 'dog' from a file called 'animals', and append dog to the test variable, so that it has the values 'dog monkey' in it.
To make it short :
test = 'monkey'
I wanted to get another value (dog) from a file, and append it to test so I get :
test = 'monkey dog'
Appreciate all your help!
Thanks
Comment