xi_lin
V2EX  ›  Bash

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

  •  
  •   xi_lin · Nov 13, 2018 · 7850 views
    This topic created in 2922 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
    Lax
    Nov 13, 2018
    1
    这方法看起来有点儿靠谱啊!
    bef0rewind
    bef0rewind
    Nov 13, 2018
    2
    ` ls |grep out| xargs cat > outcombine`

    会提示:

    `cat: outcombine: input file is output file`

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