Cat Command Not Reading All Data in Text File

半腔热情 提交于 2019-12-06 00:06:11

I'm guessing the lines in your file end in carriage returns (\r character) not followed by new lines. That causes each line to be overwritten by the next one, and you only see the last one. Try doing

 tr '\r' '\n' <filelist97.txt

If that fixes it, you should consider fixing the file.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!