---

How to remove trailing whitespaces in a file on Linux

When you are writing code for your program, you must understand that there are standard coding styles to follow. For example, “trailing whitespaces” are typically considered evil because when they get into a code repository for revision control, they can cause a lot of problems and confusion (e.g., “false diffs”).

Get the Free Newsletter
Subscribe to Developer Insider for top news, trends & analysis
This email address is invalid.
Get the Free Newsletter
Subscribe to Developer Insider for top news, trends & analysis
This email address is invalid.