Display line numbers with the list of lines

find

  • Find a specified string in one or more files.
    More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/find>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

find "{{string}}" {{path/to/file_or_directory}} /n

click the source code to copy install find on any operating system with command-not-found.com