grep
grep usage
Find whether a file has a carriage return or not
if grep -qU $'\r' <file>; then echo "contains carriage return"; else echo "does not contain carriage return"; fi
Last updated
grep usage
if grep -qU $'\r' <file>; then echo "contains carriage return"; else echo "does not contain carriage return"; fi
Last updated