PublicID
V2EX  ›  问与答

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

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