Bash Script to append 2 lines after certain text

-2

1

Please help me with bash script to append following lines to a file (logs.conf) after the line contains "interval 1. logs.conf is located at /etc/logs.conf

$SystemLogRateLimitInterval 2

$SystemLogRateLimitBurst 50

Expected outcome in logs.conf

this is logs.conf file

setting the loginterval 1

$SystemLogRateLimitInterval 2

$SystemLogRateLimitBurst 50

end of file

Ramkey

Posted 2020-02-25T14:09:55.683

Reputation: 1

Question was closed 2020-02-25T14:49:50.430

No answers