我试图从stdata.txt 中删除第一列和第二列,从stdata1.txt 中删除第二列。
数据.txt :
1 a 10
2 b 20
3 c 30
Run Code Online (Sandbox Code Playgroud)
studata1.txt :
i si
co oi
me zi
Run Code Online (Sandbox Code Playgroud)
这是我的 bash 文件:
cut -d -f -2 studata.txt >tmp1
cut -d -f 2- studata1.txt > tmp2
paste tmp1 tmp2 > c.txt
cat c.txt
Run Code Online (Sandbox Code Playgroud)
错误:
cut: the delimiter must be a single character
Run Code Online (Sandbox Code Playgroud)