我想总结一下"uniq -c"命令的出现输出.我怎么能在命令行上这样做?
例如,如果我在输出中得到以下内容,我将需要250.
45 a4
55 a3
1 a1
149 a5
Run Code Online (Sandbox Code Playgroud) 我想在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)