摘要:
cut -d" " -f1 input1.txt >1.txt cut -d" " -f2 input1.txt >2.txt paste -d: 1.txt 2.txt paste -s -d: b.txt c.txt ls | paste -d"" - 阅读全文
posted @ 2020-04-01 21:04
xinyueliu
阅读(123)
评论(0)
推荐(0)
摘要:
#!/bin/bash sed '{#remove empty line s/^M$// s/.$// /^$/d s/^!/#&/ :a s/^#\(.*\)/\1/ ta /^\[.*\]/ {N; s/\n/ /}}' input.txt 阅读全文
posted @ 2020-04-01 20:47
xinyueliu
阅读(175)
评论(0)
推荐(0)
浙公网安备 33010602011771号