search and replace

hi all,

the problem is like this...... i setup a file (Env.txt) which handles all the values.

NAME1=xxxxxx, where xxxxx is the value
NAME2=xxxxxx
GGGGG=uusufu

I have 6 files, where i will append the values from env.txt. These files has no specific format. all i want is to append the 1 value to a certain part of the file using awk or sed.,

is it possible?

Which "1 value"?

What part of "the" file? Do you mean all 6 files?

You can probably do what you want with awk, e.g.:

awk -v lnum=42 -v val="$val" '{print}
   NR == lnum { print val }' FILE > tempfile &&
mv tempfile "$FILE"