Jump to content

How to remove trailing blanks?


Recommended Posts

I have two files (program source code); one is the older version, and one is the newer version.

I need to know what exact changes were between the two versions. When I use diff to compare the two, each line is flagged as different, although they seem identical.

It didn't take me long to find that the older version had trailing blanks up to column 80 (these are files originating from IBM MVS and VSE systems).

Question: is there an easy way to remove trailing blanks from a file under Unix?

(For now I am going to download the files to Windows and try with Windiff; I think it ignores blank space).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy