Add a param
awk -F"
" '$1~/pqr/{$(NF+1)="para4=uiy"}1' OFS="
" RS= file
If it always adds the last one and you dont know the number you could use
awk -F"
" '$1~/pqr/{$(NF+1)="para"NF"=uiy"}1' OFS="
" RS=
Remove a param
awk -F"
" '$1~/xyz/{gsub(/
para2=236/,"")}1' OFS="
" RS= file
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…