• @tequinhu
    link
    13
    edit-2
    1 month ago

    grep -irl "some text that the file would have"

    (Obiously only work for text files, but that’s enough to cover 90% of cases for me)

      • @tequinhu
        link
        11 month ago

        Fun fact: I use “git bash shell” over windows’ cmd just because of grep

        • Rikudou_Sage
          link
          fedilink
          122 days ago

          You can also use WSL to get a full Linux there. If WSL1 is still available, it would be better for this use case.

    • @indepndnt
      link
      11 month ago

      I don’t know what those flags mean, but from context I think this is a command I’ve needed a bunch of times but haven’t had the time or energy to learn about yet. So thanks! I can’t wait to try it!