Digital Marketing

Count lines by PowerShell

Measure-Object -line can count the lines for you

Examples:

(ls | Measure-Object -line).Lines

(cat *.txt | Measure-Object -line).Lines

Comments

Popular posts from this blog

Fixed WSL sshd: no hostkeys available -- exiting

PowerMTA pmta command

How to fix: mv: failed to preserve ownership