Skip to main content

One post tagged with "sed"

View All Tags

· 4 min read
zaxro

sed

一般打印 印 5~7 行 其他行數 silence

cat -n xxxx.md | sed -n '5,7p'

把 whois 檢查 domain 中的 Registry Expiry Date 的前面的空格去掉,以下意思是把 0 個以上的 space 去掉

sed 's/\s\{0,\}Registry Expiry Date: //'