摘要:
1 文件里有如下行,我想将每行的回车符替换为逗号,并将所有行合并到一行,用awk或sed怎么写啊TOP_COLUMNTOP_MESSAGETOP_OPTIONSTOP_TOPICTOP_VOTETOP_COLTYPE awk '{{printf"%s,",$0}}' sed ':a;N;$!ba;s 阅读全文
摘要:
sed -i 's/^#//g' /etc/yum.repos.d/centos6.8.repo sed -i 's/enabled=0/enabled=1/g' /etc/yum.repos.d/centos6.8.repo rm -rf /etc/salt/pki/minion/minion_m 阅读全文