sed 用法請教 - Linux
By Todd Johnson
at 2017-02-28T09:47
at 2017-02-28T09:47
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]}/ &/}' | \
--
第二行應該是d command, 但d前面的address部分不知如何解釋?
------------------------------------------------------
sed -e "$__sed_discard_ignored_files" \
-e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
-e '{ s/^ifcfg-//g;s/[0-9]}/ &/}' | \
--
Tags:
Linux
All Comments
By Olive
at 2017-03-03T10:06
at 2017-03-03T10:06
Related Posts
連不上raspbian的ssh
By Olive
at 2017-02-23T18:53
at 2017-02-23T18:53
如何讓瀏覽器直接支援H265硬體解碼?
By Emily
at 2017-02-23T16:00
at 2017-02-23T16:00
seagate 3tb資料碟問題
By Kristin
at 2017-02-23T15:46
at 2017-02-23T15:46
linux "I/O error" how to fix?
By Kama
at 2017-02-23T03:23
at 2017-02-23T03:23
ubuntu 16.04踩地雷能換回14.04版本的嗎?
By Caroline
at 2017-02-23T02:15
at 2017-02-23T02:15