如何在ubuntu中使用grep命令提取本文中的第二个数字。
14219,98.2,31-s,19225
39219,92.7,31-s,29225
39219,38.7,31-s,29225
所需输出:
98.2
92.7
38.7
谢谢
发布于 2019-03-13 06:28:08
可能是这篇文章的副本:Parsing the first column of a csv file to a new file
在您的示例中,可以使用cat file.txt | cut -d, -f2
提取第二列。
https://stackoverflow.com/questions/55131477
复制相似问题