2

Is there a sed command to remove trailing white spaces?

Jonathan Leffler
  • 698,132
  • 130
  • 858
  • 1,229
carte blanche
  • 9,522
  • 11
  • 41
  • 60

1 Answers1

10

use the command below:

sed 's/\s*$//g' your_file
Vijay
  • 62,703
  • 87
  • 215
  • 314