- See if the file has the problem
tail -1c FileName.ext | wc -l
A file with an incomplete last line will report a 0 as the answer
- Fix the file
echo >> FileName.ext
Voilá! Your file is now fixed!
tail -1c FileName.ext | wc -l
A file with an incomplete last line will report a 0 as the answer
echo >> FileName.ext
Voilá! Your file is now fixed!