【问题标题】:Printing Last 10000line of a txt into another txt in Unix在 Unix 中将一个 txt 的最后 10000 行打印到另一个 txt 中
【发布时间】:2014-05-29 11:26:23
【问题描述】:

我想取出一个 txt 文件的最后 10000 行并将其放入另一个文件中,但出现错误 这是我的代码

cat | tail - 10000 ihbar_identity.txt > IHBARSONLOG.txt

【问题讨论】:

    标签: unix printing copy cat tail


    【解决方案1】:

    或者只是:

    tail -10000 ihbar_identity.txt > IHBARSONLOG.txt
    

    【讨论】:

      【解决方案2】:

      tail -n 10000 ihbar_identity.txt > IHBARSONLOG.txt

      【讨论】:

        猜你喜欢
        • 2013-10-09
        • 2012-07-03
        • 2021-09-11
        • 1970-01-01
        • 2021-01-13
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-05-13
        相关资源
        最近更新 更多