News for hackers. Stuff that matters.
Re:Detrail: a dead-simple command line utility to fix traili... by samgd on Sunday August 28, 2016 @01:12AM (#12375389)
sed 's/\s*$//g'
Re:Detrail: a dead-simple command line utility to fix traili... by joshka on Sunday August 28, 2016 @05:52AM (#12375959)
Funnily, that doesn't work as expected on OS X due to a rather old version of sed installed by default that doesn't support \s. Try the following instead:

  sed 's/[[:blank:]]*$//g'