Replacing specific lines with another lines

Hi,

I have a file with many lines,
then i have following list of lines(line number 5,12,19,5,and 28) i need to replace these lines of a file with another lines as shown below these text
contains special charecter like= (/ :; ){}[]

Line_number  Text to replace with
5                  abc xyg ;, : def
12                 replace with this ;, : def
19                 test abc io ; /kjlkj;
5                   thisis sis nok ioijlk; ';
28                 abc xyg ;, : def

Can some one give me a quick solution.

Try:

awk -F'     *' 'NR==FNR{R[$1]=$2; next}FNR in R{$0=R[FNR]}1' list file

I used multiple spaces as a separator, since that was in your sample, you can also use a tab character for example...