3

Is there a sed command to remove trailing white spaces?

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
carte blanche
  • 10,796
  • 14
  • 46
  • 65

1 Answers1

11

use the command below:

sed 's/\s*$//g' your_file
Vijay
  • 65,327
  • 90
  • 227
  • 319