**Case: ** Count no of lines from each *.txt
file from the files
directory.
In files
directory struture is below:
/files/
- /test/
-- log.txt
- /test2/
-- log.txt
First log.txt file contain 10 no of lines. Second log.txt file contain 5 no of lines.
Use command (for /r %f in (*.txt) do @type "%f") | find /c /v ""
E.g.
C:\xampp\htdocs\wpi18n\wp-content\files
λ (for /r %f in (*.txt) do @type "%f") | find /c /v ""
14
It shows 14
because of it starts from 0 (zero).