1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2026-08-18 10:22:31 +02:00
Files
2026-03-06 15:20:47 +01:00

16 lines
399 B
PowerShell

param(
[string]$dir = "."
)
$total = 0
Get-ChildItem -Path $dir -Recurse -File | Where-Object {
$_.Extension -in ".c", ".cpp", ".h"
} | ForEach-Object {
$lines = [System.Linq.Enumerable]::Count([System.IO.File]::ReadLines($_.FullName))
Write-Output "$($_.FullName) : $lines"
$total += $lines
}
Write-Output "-----------------------------"
Write-Output "Over all files: $total"