|
|
|
|
|
by fainpul
211 days ago
|
|
> When you do that, programs up and down the stream need to be aware of that - and that makes it brittle. You can go from object- to good old text processing with *nix tools no problem. Instead of using 100% PowerShell to count all lines in the text files: gc *.txt | measure | select -ExpandProperty count
you can switch to `wc` if you like: gc *.txt | wc -l
`gc` is Get-Content – basically cat. You can also use awk, sed, jq etc. |
|