Search code examples
batch-filefindstr

Match all lines in findstr.exe?


How to specify expression to findstr.exe to let it match all lines? This is useful to get the line number for the content or check whether given file is empty.


Solution

  • This will match all lines.

    findstr "^" "file.txt"