fix recursive line count (lcr)

This commit is contained in:
Schrottkatze 2024-04-03 17:56:13 +02:00
parent a2e61d05c2
commit 937562a815
No known key found for this signature in database

View file

@ -790,7 +790,8 @@ def nsp [
def lcr [
file_extension: string
] {
ls $"**/*.($file_extension)"
ls **/*
| where name ends-with $".($file_extension)"
| each {|file|
open $file.name
| lines --skip-empty