shell将2个文件的前两行和最后一行中间内容合并的编写过程
摘要:
1-初步想法:将固定的头和尾写死追加到内容前后: echo -e '<?xml version="1.0"?>\n<doc>' >> c.txt \ && cat a.txt | sed '1,2d' | sed '$d' >> c.txt \ && cat b.txt | sed '1,2d' | 阅读全文
posted @ 2021-09-03 17:57 深入学习ing 阅读(283) 评论(0) 推荐(0)
浙公网安备 33010602011771号