try
sed -e '/tc_/s/$/ status=D/'
where
* `/tc_/` on line where tc_ is found,
* `s` substitute,
* `/$` end of line,
* `/ status=D/` by this string
if it looks OK, add `-i` to edit in place.
try
sed -e '/tc_/s/$/ status=D/'
where
* `/tc_/` on line where tc_ is found,
* `s` substitute,
* `/$` end of line,
* `/ status=D/` by this string
if it looks OK, add `-i` to edit in place.