摘要:
file: Hello World This is line 2 This is not var \$var scripts: var="Hello" sed -n 's/$var/Hi/p' file # result: This is not var \Hi sed -n "s/$var/Hi/ 阅读全文
摘要:
data1: a b c d aa bb cc dd data2: 1 2 3 4 5 6 7 11 22 33 44 55 66 77 111 222 333 444 555 666 777 期望结果: 把data1的最后2列合并到data2的最后2列之后 6 7 c d 6 7 cc dd 66 阅读全文