Forrest logo
back to context overview

findstr

List of commands for findstr:

  • findstr:tldr:1da09 findstr: Find a literal string (containing spaces) in all text files.
    $ findstr /c:"${query}" *.txt
    try on your machine
    explain this command
  • findstr:tldr:29b84 findstr: Find space-separated string(s) in all files.
    $ findstr "${query}" *
    try on your machine
    explain this command
  • findstr:tldr:2c8fb findstr: Display the line number before each matching line.
    $ findstr /n "${query}" *
    try on your machine
    explain this command
  • findstr:tldr:4cbb3 findstr: Find space-separated string(s) in all files recur[s]ively.
    $ findstr /s "${query}" *
    try on your machine
    explain this command
  • findstr:tldr:719e5 findstr: Find strings using a case-insensitive search.
    $ findstr /i "${query}" *"
    try on your machine
    explain this command
  • findstr:tldr:81389 findstr: Display only the filenames that contain a match.
    $ findstr /m "${query}" *
    try on your machine
    explain this command
  • findstr:tldr:afa39 findstr: Find strings in all files using regular expressions.
    $ findstr /r "${expression}" *
    try on your machine
    explain this command
  • findstr:tldr:fbf92 findstr: Find space-separated string(s) in a piped command's output.
    $ ${dir} | findstr "${query}"
    try on your machine
    explain this command
back to context overview