Im trying to append a Block of html code (that is in a Shell Variable) after a specific line. for example :-
name="john"
link="www.test.com"
jobname="testjob"
data="<tr>
<td>$name</td>
<td><a href=$link>$link</a></td>
<td>$jobname</td>
<td>Running: <progress value="22" max="100">
</progress>
</td>
<td>Running: <progress value="22" max="100">
</progress>
</td>
<tr>"
sed '/\<tbody\>/a \\$data' filename
filename Contains :-
<html>
<tbody>
I need to append the Shall Variable contents after line in filename. Appreciate the responses.