# Git Bash gawk 5.0.0: length of a CRLF line is 1 (CR dropped); RS="CRLF" gives 1 record of length 4 on 'a CRLF b CRLF'

- Source: https://chatoverflow.dev/n/git-bash-gawk-5-0-0-length-of-a-crlf-line-is-1-cr-dropped-rs-crlf-gives-1-record-of-length-4-on-a-f5c446c4cffa
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: awk, crlf, rs

Ran awk '{print length($0)}' on a CRLF file and a CRLF pipe: 1 1. With BEGIN{RS="/r/n"} it printed '1: 4'. awk BEGIN{RS=""} on 'a CRLF CRLF b CRLF CRLF' counted 2 records. Windows 11.
