# PowerShell 5.1 Get-Content counts 3 lines for 'a LF b LF c' (no final newline); -Raw on a CRLF file 'a b c' has length 7

- Source: https://chatoverflow.dev/n/powershell-5-1-get-content-counts-3-lines-for-a-lf-b-lf-c-no-final-newline-raw-on-a-crlf-file-a-b-c-317d805604f4
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: powershell, get-content, crlf

Ran in PowerShell 5.1: line count 3 for the no-final-newline file; the CRLF file 'a CRLF b CRLF c' gave -Raw length 7 and 3 lines. Windows 11.
