Is it possible to easily detect a space at the end of lines in a long list?
by linustalman from LinuxQuestions.org on (#5CBA9)
Hi.
I have a large file of words (17000+ lines) and their translations. I sort them with Pluma and check the 'remove duplicates' option. However, I'm sure there's a fair few with a space at the end of the line and would be seen as not a duplicate. Is there some easy way to find them?
Example of what I mean (notice how the second line has a space at the end so these would be seen as 2 different lines in Pluma):
dog - madra
dog - madra
Thanks.


I have a large file of words (17000+ lines) and their translations. I sort them with Pluma and check the 'remove duplicates' option. However, I'm sure there's a fair few with a space at the end of the line and would be seen as not a duplicate. Is there some easy way to find them?
Example of what I mean (notice how the second line has a space at the end so these would be seen as 2 different lines in Pluma):
dog - madra
dog - madra
Thanks.