• Meron35@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      32 minutes ago

      plocate is much faster and requires less resources. macOS users should use mdfind instead

    • BeigeAgenda@lemmy.ca
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      8 hours ago

      Or like me obliviously spending cycles trawling through everything.

      find dir/ -iname "*John*Cena*"
      

      or

      grep -rIi "John.*Cena" dir/
      
      • qjkxbmwvz@startrek.website
        link
        fedilink
        arrow-up
        2
        ·
        6 hours ago

        grep -rIi “John.*Cena” dir/

        I have this sort of thing aliased, with some added --include flags to filter file type (e.g., only match source/script files). Super useful!

      • marcos@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        7 hours ago

        spending cycles trawling through everything

        Beats spending cycles indexing everything and never search them.