• BeigeAgenda@lemmy.ca
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    6 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
      ·
      5 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
      ·
      6 hours ago

      spending cycles trawling through everything

      Beats spending cycles indexing everything and never search them.