Files
JIMRI/scripts/checkCR.sh
T
2026-06-17 14:00:51 +02:00

15 lines
246 B
Bash
Executable File

#! /bin/sh
#
# Script to check a single file for DOS/WINDOWS line ends
#
# True/OK if _does_ have DOS/WINDOWS line ends
#
# typical use:
# find xml -type f -exec ./scripts/checkCR.sh {} \; -print
#
cat -v "$*" | tail -1 | grep -q "\^M"