V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
xi_lin
V2EX  ›  Bash

今天想合并文件写出个递归。。。

  •  
  •   xi_lin · Nov 13, 2018 · 7359 views
    This topic created in 2723 days ago, the information mentioned may be changed or developed.
    ls | grep Camp | xargs cat > CampCombine
    

    一会儿硬盘就炸了。。

    5 replies    2018-11-14 00:17:54 +08:00
    Lax
        1
    Lax  
       Nov 13, 2018
    这方法看起来有点儿靠谱啊!
    bef0rewind
        2
    bef0rewind  
       Nov 13, 2018
    ` ls |grep out| xargs cat > outcombine`

    会提示:

    `cat: outcombine: input file is output file`

    Ubuntu 16.04
    xi_lin
        3
    xi_lin  
    OP
       Nov 13, 2018
    @bef0rewind 我是在 mac 下跑的,看来还不一样
    xi_lin
        5
    xi_lin  
    OP
       Nov 14, 2018
    @bef0rewind 赞!我才反应过来你的 id 哈哈
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5650 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 06:51 · PVG 14:51 · LAX 23:51 · JFK 02:51
    ♥ Do have faith in what you're doing.