PublicID
V2EX  ›  问与答

求 Mac 下高效率查找 txt 内容的方法

  •  
  •   PublicID · Jul 27, 2015 · 1886 views
    This topic created in 4149 days ago, the information mentioned may be changed or developed.
    一个文件夹内大概有100个左右的txt,每个txt有30MB左右,有什么高效率的方法在该文件夹中所有txt里查找特定的内容?
    SoloCompany
    SoloCompany
    Jul 27, 2015
    1
    grep
    fantasyczl
    fantasyczl
    Jul 28, 2015
    2
    find . -name '*.txt' | xargs grep -n 'reg'
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1902 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 08:36 · PVG 16:36 · LAX 00:36 · JFK 03:36
    ♥ Do have faith in what you're doing.