Q:

Unix Shell scripting in AIX(Sed command)

I have a text file which consists of jobname,business name and time in min seperated with '-'(SfdcDataGovSeq-IntegraterJob-43).There are many jobs in this text file. I want to search with the jobname and change the time from 43 to 0 only for that particular row and update the same text file. Kindly advise what needs to be done.
Query that i am using : (cat test.txt | grep "SfdcDataGovSeq" | sed -e 's/43/0/' > test.txt) but the whole file is getting replaced with only one line.

A:

sed -e '/SfdcDataGovSeq/ s/43/0/' test.txt

This will only replace if the search is positive. 
Agreed with Ed, Here is a workaround to put word boundaries Although Equality with awk is robust. 
sed -e '/SfdcDataGovSeq/ s/\<43\>/0/g' test.txt

