[Geany] 'Strip trailing spaces' menu option

Jeff Pohlmeyer yetanothergeek at xxxxx
Mon Sep 17 17:19:32 UTC 2007


On 9/17/07, Jelle de Jong <jelledejong at powercraft.nl> wrote:

> Harold Aling wrote:
> > I'd like to request a 'strip trailing spaces' option in the menu to be able
> > to manually strip files of those 'byte-consuming bits of nothing' ;) ...

> If somebody can post a nice working sed command for the custom commands,

I don't know sed, but awk could be:

  awk '{gsub(/[\t ]+$/, ""); print}'


 - Jeff



More information about the Users mailing list