Re: [frogs] Patch for Issue #830 |
[ Thread Index |
Date Index
| More lilynet.net/frogs Archives
]
- To: Graham Percival <graham@xxxxxxxxxxxxxxxxx>, Marc Hohl <marc@xxxxxxxxxx>
- Subject: Re: [frogs] Patch for Issue #830
- From: Mark Polesky <markpolesky@xxxxxxxxx>
- Date: Mon, 21 Dec 2009 14:10:15 -0800 (PST)
- Cc: James Lowe <James.Lowe@xxxxxxxxxxxx>, Neil Puttock <n.puttock@xxxxxxxxx>, Carl Sorensen <c_sorensen@xxxxxxx>, Lily-Devel List <lilypond-devel@xxxxxxx>, "frogs@xxxxxxxxxxx" <frogs@xxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1261433416; bh=midc4A9wic22IhMs0Q5GkMyfGkmJzoSmLJj9bMBONG4=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=0xYjJNbpWydFAhu3+ODEd1RrQVyUxSxyYcvFBXNwgYVyFJI4Com8GpXZ3pUwoX/qBC8FG4KGHpZPfs7bOFYythWCu2fryYmGyY89X7w8LCSIzodidu+6pj5Pqf+LnRudpGXH6v/8iqc1sSwK0V/RK4s6RCDeE1grq7DGdIrQwZk=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=36BL27cMDKJAJYH7JQAU92rdUya6tPomjRJPSPffbXgcdIEiP3AKSi2jwh7gLPLL2+z3tmOjm/87WL+ZEZVP4LXhk2sH2lFEN5uU8VpMLP8hq5jkbr01kvgOvCLmTetSBov9rg4DbFMvnJHW5Gg/NMSz/J56Nw6kENrWnQXqMjM=;
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!