How to add a new string at the end of line by searching a string on the same line?

Hi,

I have a file which is an extract of jil codes of all autosys jobs in our server.

Sample jil code:

**************************
permission:gx,wx
date_conditions:yes
days_of_week:all
start_times:"05:00"
condition: notrunning(appDev#box#ProductLoad)
**************************

We want add a new dependency condition for all the jobs in the server.
So we would need to add a new string at the end of line(line which have dependency conditions) as shown below and then reload the jobs in to the server:

condition: notrunning(appDev#box#ProductLoad) & s(new_job_dependency)

We have 10000+ jobs(and 100K lines of data in the file) in the server, and reading line by line and doing the changes is not possible.
We have to search for the string 'condition:' at the begining of the line and then add new string 'new_job_dependency' at the end of the same line.

Could some one please suggest a way to achieve this?

If you have GNU sed available:

sed -r '/^condition/s/(.*)/& \& s(new_job_dependency)/' infile