Sed introduction Sed is a stream Editing tool, used to filter and replace text, especially when you want to make unified changes to dozens of configuration files, you will feel the charm of Sed! Se
Tag: Sed
SED a stream editor
Introduction Sed uses a stream editing mode:
The most obvious feature is that before sed processes data, it needs to provide a set of rules in advance. sed will edit the data according to this rul
SED practice, some SED common methods
1. Copy the /etc/rc.d/rc.local file to the /tmp directory, and copy the
Add # at the beginning of lines that start with at least one blank character. sed -ri’s/^ +/#/g’ rc.local 2. Copy /bo