【发布时间】:2014-05-29 11:26:23
【问题描述】:
我想取出一个 txt 文件的最后 10000 行并将其放入另一个文件中,但出现错误 这是我的代码
cat | tail - 10000 ihbar_identity.txt > IHBARSONLOG.txt
【问题讨论】:
标签: unix printing copy cat tail
我想取出一个 txt 文件的最后 10000 行并将其放入另一个文件中,但出现错误 这是我的代码
cat | tail - 10000 ihbar_identity.txt > IHBARSONLOG.txt
【问题讨论】:
标签: unix printing copy cat tail
或者只是:
tail -10000 ihbar_identity.txt > IHBARSONLOG.txt
【讨论】:
tail -n 10000 ihbar_identity.txt > IHBARSONLOG.txt
【讨论】: