Method: 1. Set the parameter "c", c can be followed by strings, these strings can replace the specified lines, the syntax is "sed 'line number c content after replacement'"; 2. Set The parameter "s" can be used for substitution directly, and the syntax is "sed 's/string to be replaced/new string/g'".
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
The Linux sed command uses scripts to process text files.
sed can process and edit text files according to the instructions of the script.
Sed is mainly used to automatically edit one or more files, simplify repeated operations on files, write conversion programs, etc.
Syntax
sed [-hnV][-e<script>][-f<script文件>][文本文件]
Parameter description: