小编Gau*_*rav的帖子

错误:cut:linux中的分隔符必须是单个字符

我试图从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)

linux bash

3
推荐指数
1
解决办法
3万
查看次数

标签 统计

bash ×1

linux ×1