Re: [frogs] Patch for Issue #830

[ Thread Index | Date Index | More lilynet.net/frogs Archives ]


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


      

---
----
Join the Frogs!


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/