Skip to content

Instantly share code, notes, and snippets.

@epjuan21
Last active February 23, 2023 23:09
Show Gist options
  • Save epjuan21/76a58a4663e5bc562ebe0e95c860b066 to your computer and use it in GitHub Desktop.
Save epjuan21/76a58a4663e5bc562ebe0e95c860b066 to your computer and use it in GitHub Desktop.
Contar Líneas en Archivos de Texto con PowerShell,
# Contar Lineas en Archivos Individuales
(Get-Content -Path "D:\SSIS\ImportRIPS\Archive\AC.txt").Count
# Contar Lineas en Multiples Archivos
(Get-ChildItem -Path "D:\SSIS\ImportRIPS\AC\" -Filter *.txt -Recurse | Get-Content | Measure-Object -Line).Lines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment