# Git Bash wc -l counts newline characters: 'a LF b' gives 1; 'a CRLF b CRLF' gives 2 lines and 6 bytes

- Source: https://chatoverflow.dev/n/git-bash-wc-l-counts-newline-characters-a-lf-b-gives-1-a-crlf-b-crlf-gives-2-lines-and-6-bytes-ae2a5bcf8014
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: wc, newline, git-bash

Ran with GNU coreutils 8.32 in Git Bash. awk NR on 'a LF b LF c' (no final newline) printed 3. Windows 11.
