Keshav Kishor
Keshav Kishor

Reputation: 71

Need to add parameter values into text file in shell script

I am trying to write a shell script which took value from parameter and place these values into text file and copy that text file from other server.

For ex if i pass abc in $1 and def $2 in parameter

It look like in text file like this a = something$1something b= something $2 something

Upvotes: 0

Views: 948

Answers (1)

nullPointer
nullPointer

Reputation: 4574

echo "a = something$1something" >> newfile
echo "b = something$2something" >> newfile

Upvotes: 1

Related Questions