💻 Software
Better way to detect EOL of a file
Fresh5 days ago
Mar 15, 20263154 viewsConfidence Score0%
0%
Problem
Is there a quick way to detect the EOL for a file? I normally just open up the file in Vim and check out the status line. I'm sure there's a better and quicker way. I figured a grep might work, but I am not sure if it's the most elegant way to detect the EOLs. I'm specifically focused on detecting …
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Better way to detect EOL of a file
Low Risk
(at least with the magic database commonly found on Linux) is an easy way. It won't warn you about mixed-ending files, though.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix