小编use*_*923的帖子

uniq -c的和出现输出

我想总结一下"uniq -c"命令的出现输出.我怎么能在命令行上这样做?

例如,如果我在输出中得到以下内容,我将需要250.

 45 a4
 55 a3
  1 a1
149 a5
Run Code Online (Sandbox Code Playgroud)

scripting awk uniq

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

如何在剪切结果(bash)中删除字符串的后缀?

我想在cut命令的所有结果行中删除特定字符"/"后的所有字符如何使用bash命令执行此操作?

例如,如果cut -f2 file结果:

John.Micheal/22
Erik.Conner/19
Damian.Lewis/40
Run Code Online (Sandbox Code Playgroud)

我需要输出:

John.Micheal
Erik.Conner
Damian.Lewis
Run Code Online (Sandbox Code Playgroud)

string bash awk cut

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

标签 统计

awk ×2

bash ×1

cut ×1

scripting ×1

string ×1

uniq ×1