所以我试图在txt文件的每一行打印第一个单词.单词用一个空格分隔.
cut -c 1 txt file
这是我到目前为止的代码,但它只打印每行的第一个字符.谢谢
unix bash file
bash ×1
file ×1
unix ×1