Answer the question
In order to leave comments, you need to log in
How to add text to a file after a certain line in Linux?
Tried like this, but writes after each line.
sed -i '/'после этой строки'/a "вставить это"' /home/vasya/file.cnf;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question