Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
For starters, this is a comment, why change it?
Second, use, for example, sed
sed -i 's/чтоменять/на что менять/g' filename
PS To replace the entire block, you can specify a null delimiter and write a regexp that captures the entire block, for example
sed -zi 's/# secureboot\nservice.*\n.*class core\n.*oneshot\n.*seclabel.*/# secureboot off/g' FILENAME
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question