sed 用法請教 - Linux

Table of Contents

以下是centos7 /etc/init.d/network 裡的某幾行,
第二行應該是d command, 但d前面的address部分不知如何解釋?
------------------------------------------------------
sed -e "$__sed_discard_ignored_files" \
-e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
-e '{ s/^ifcfg-//g;s/[0-9]}/ &/}' | \

--

All Comments

Olive avatarOlive2017-03-03
沒有 -E 的話 regex 裏面的 \(\) \| 和 () | 意義是反過來的