linux运维经验分享
2017年9月7日
shell习题
No Comments
aming
比如1.txt内容 1 2 3 4 5 6 7
处理后应该是 1 2 3 4 5 6 7
参考答案:
sed 'N;N;s/\n/ /g' 1.txt
shell习题-三行变一行
2017年9月7日
shell习题
No Comments
aming
比如1.txt内容
1
2
3
4
5
6
7
处理后应该是
1 2 3
4 5 6
7
参考答案:
shell习题