sed - Find a String and append a text end of the Line

Hi,
I have a File, which have multiple rows.
Like below

123456 Test1 FNAME JRW#$% PB MO Approver XXXXXX. YYYY
123457 Test2 FNAME JRW#$% PB MO Super XXXXXX. YYYY
123458 Test3 FNAME JRW#$% PB MO Approver XXXXXX. YYYY

I want to search a line which contains PB MO Approver and append the below string at the end of the line.
" PA1"

Result should be like this.

123456 Test1 FNAME JRW#$% PB MO Approver XXXXXX. YYYY PA1
123457 Test2 FNAME JRW#$% PB MO Super XXXXXX. YYYY PA1
123458 Test3 FNAME JRW#$% PB MO Approver XXXXXX. YYYY PA1
Can any one plese help..

sed 's/.*PB MO.*/& PA1/' filename
1 Like

Thanks a lot Subbeh.. it works fine.