推 CP64: 沒有 -E 的話 regex 裏面的 \(\) \| 和 () | 意義是反過來的 02/28 11:46
以下是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]}/ &/}' | \
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 182.235.5.18
※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1488246439.A.315.html