PublicID
V2EX  ›  问与答

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

  •  
  •   PublicID · Jul 27, 2015 · 1770 views
    This topic created in 4033 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   ·   5459 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 06:50 · PVG 14:50 · LAX 23:50 · JFK 02:50
    ♥ Do have faith in what you're doing.