[Linux] 출력 자르기

sed -i '/^\[main\]/a log_rotate=0' /etc/dnf/dnf.conf

 

^ 맨 앞부터 일치  
a 찾은 위치 아래에 넣기