Paco

Personal Content Organiser

Home / Linux

Navigation

Menu

Search

sed

Append line after match


sed -i '/MATCH/a Text to insert' file

Insert line before match


sed -i '/MATCH/i Text to instert' file