From: Ralph Corderoy <ralph@inputplus.co.uk>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] \n\n\n to \n\n
Date: Mon, 3 Mar 2003 10:08:59 +0000 [thread overview]
Message-ID: <27a4.3e5fba41.a4a2b@blake.inputplus.co.uk> (raw)
In-Reply-To: <001301c2df26$de171080$2a8be793@gli.cas.cz>
Hi pac,
> i don't know how to translate triple newlines into double ones.
> i tried tr \n to something else and then sed,
You could do it with sed. awk does just as well for a throw-away
one-liner.
awk '{c = c * !length * (c != 3) + !length} c < 3'
> however, sed doesn't like long lines :-(
Use GNU sed!
Cheers,
--
Ralph Corderoy. http://inputplus.co.uk/ralph/ http://troff.org/
next prev parent reply other threads:[~2003-03-03 10:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-28 12:42 peter a. cejchan
2003-02-28 18:11 ` Russ Cox
2003-03-03 10:08 ` Ralph Corderoy [this message]
2003-02-28 18:48 Joel Salomon
2003-03-03 10:09 ` Douglas A. Gwyn
2003-03-03 14:25 ` Dan Cross
[not found] <1900322893@snellwilcox.com>
2003-03-03 11:14 ` Steve Simon
2003-03-04 10:26 ` Fco.J.Ballesteros
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=27a4.3e5fba41.a4a2b@blake.inputplus.co.uk \
--to=ralph@inputplus.co.uk \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).