# awk -F "," '{ for(i=1;i<=NF;i++) { print $i } }' filename.txt
sed -i '$!N;/\nNumber/!P;D' filename.txt
sed -i '$!N;$!P;$!D;s/,//g' filename.txt
从 A打印到B
# sed -ne '/A/,/B/p' filename.txt
sed -n '/Thu Jun 9\ 05:[0-9][0-9]:[0-9][0-9]/,/Fri Jun 17\ 16:[0-9][0-9]:[0-9][0-9]/p' server.log > filename.txt
openssl s_client -connect www.example.com:443 < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > filename.crt
你所不知道的那些sed命令
https://zhuanlan.zhihu.com/p/220097080
sed之N和$!N的区别和运用
http://blog.chinaunix.net/uid-10540984-id-1759548.html
awk之按特征相邻行去重(保留第一行或最后一行)
http://blog.chinaunix.net/uid-10540984-id-1761379.html
sed命令,如何替换换行符“\n”
https://blog.csdn.net/u011729865/article/details/71773840/
sed -i '$!N;/\nNumber/!P;D' 请问这句什么意思?
https://zhidao.baidu.com/question/1374632265107261939.html
sed之利用lable跳转实现条件判断
http://blog.chinaunix.net/uid-10540984-id-1754318.html