|
From: | Mark Polesky |
Subject: | Re: [frogs] Patch for Issue #830 |
Date: | Mon, 21 Dec 2009 14:10:15 -0800 (PST) |
Marc Hohl wrote: > I found something useful here: > http://code.google.com/p/pymc/issues/detail?id=230 > > The program is simple but seems to work: Why not use a sed one-liner? sed -i 's/[ \t]*$//' filename ***** $ echo -e "Trailing spaces: \nTrailing tabs:\t\t" > ws-test $ cat -A ws-test Trailing spaces: $ Trailing tabs:^I^I$ $ sed -i 's/[ \t]*$//' ws-test $ cat -A ws-test Trailing spaces:$ Trailing tabs:$ ***** - Mark
[Prev in Thread] | Current Thread | [Next in Thread] |