• BeigeAgenda@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      7 days ago

      Or like me obviously spending cycles trawling through everything.

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

      or

      grep -rIi "John.*Cena" dir/
      
          • [object Object]@lemmy.world
            link
            fedilink
            arrow-up
            0
            ·
            6 days ago

            Btw, while I’m here: you might also want to look into eza, fzf, bat, and maybe delta (or icdiff for side-by-side comparison). I’m pretty conservative regarding replacement for classic utils, but these are worth it.

      • qjkxbmwvz@startrek.website
        link
        fedilink
        arrow-up
        0
        ·
        7 days 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
        0
        ·
        7 days ago

        spending cycles trawling through everything

        Beats spending cycles indexing everything and never search them.