SHA=a2f335f81e6a67f9aa9ea4e6e4bdfab44a1f9200
f=.github/workflows/ci.yml
a=$(git show "$SHA:$f" | grep -c $'\r' || true)
b=$(git cat-file blob "$SHA:$f" | grep -c $'\r' || true)
c=$(git show "$SHA:$f" | wc -l)
printf 'show+grep CR = %s\n' "$a"
printf 'blob+grep CR = %s\n' "$b"
printf 'line count   = %s\n' "$c"
printf 'pattern bytes: '
printf '%s' $'\r' | od -c | head -2
