* [9fans] Character CR in Plan9?
@ 2010-04-20 11:28 pmarin
2010-04-20 12:07 ` Rudolf Sykora
0 siblings, 1 reply; 6+ messages in thread
From: pmarin @ 2010-04-20 11:28 UTC (permalink / raw)
To: 9fans
Hi all.
I notice that in Plan9 (p9p) the character CR is not represented with
'\r'. What I have to use instead?
Cheers.
pmarin
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] Character CR in Plan9?
2010-04-20 11:28 [9fans] Character CR in Plan9? pmarin
@ 2010-04-20 12:07 ` Rudolf Sykora
2010-04-20 12:25 ` pmarin
0 siblings, 1 reply; 6+ messages in thread
From: Rudolf Sykora @ 2010-04-20 12:07 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
On 20 April 2010 13:28, pmarin <pmarin.mail@gmail.com> wrote:
> Hi all.
>
> I notice that in Plan9 (p9p) the character CR is not represented with
> '\r'. What I have to use instead?
>
> Cheers.
> pmarin
what is it that you wanna achieve?
'\n' is almost always what I want...
R
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] Character CR in Plan9?
2010-04-20 12:07 ` Rudolf Sykora
@ 2010-04-20 12:25 ` pmarin
2010-04-20 12:26 ` erik quanstrom
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: pmarin @ 2010-04-20 12:25 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
I wanted to remove this character from some files. I tried to do it with
the p9p tr(1) and I noticed that It does not support '\r'.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] Character CR in Plan9?
2010-04-20 12:25 ` pmarin
@ 2010-04-20 12:26 ` erik quanstrom
2010-04-20 12:31 ` Mathieu Lonjaret
2010-04-20 12:37 ` yy
2 siblings, 0 replies; 6+ messages in thread
From: erik quanstrom @ 2010-04-20 12:26 UTC (permalink / raw)
To: 9fans
On Tue Apr 20 08:27:04 EDT 2010, pmarin.mail@gmail.com wrote:
> I wanted to remove this character from some files. I tried to do it with
> the p9p tr(1) and I noticed that It does not support '\r'.
use
. (type with compose + X + 000d)
- erik
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] Character CR in Plan9?
2010-04-20 12:25 ` pmarin
2010-04-20 12:26 ` erik quanstrom
@ 2010-04-20 12:31 ` Mathieu Lonjaret
2010-04-20 12:37 ` yy
2 siblings, 0 replies; 6+ messages in thread
From: Mathieu Lonjaret @ 2010-04-20 12:31 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 278 bytes --]
here's one way of doing it:
open the file in acme, and write in the tag bar:
Edit ,s:
::g
and execute that (select it with the mouse and button-2 click on it).
to get the
char, you can simply cp&paste it with the mouse from the
file itself.
Cheers,
Mathieu
[-- Attachment #2: Type: message/rfc822, Size: 5035 bytes --]
From: pmarin <pmarin.mail@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Character CR in Plan9?
Date: Tue, 20 Apr 2010 14:25:48 +0200 (CEST)
Message-ID: <alpine.DEB.1.00.1004201415010.18351@bwk>
I wanted to remove this character from some files. I tried to do it with
the p9p tr(1) and I noticed that It does not support '\r'.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] Character CR in Plan9?
2010-04-20 12:25 ` pmarin
2010-04-20 12:26 ` erik quanstrom
2010-04-20 12:31 ` Mathieu Lonjaret
@ 2010-04-20 12:37 ` yy
2 siblings, 0 replies; 6+ messages in thread
From: yy @ 2010-04-20 12:37 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
2010/4/20 pmarin <pmarin.mail@gmail.com>:
> I wanted to remove this character from some files. I tried to do it with
> the p9p tr(1) and I noticed that It does not support '\r'.
>
You can use \x0d or probably sed 's/.$//'
--
- yiyus || JGL . 4l77.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-04-20 12:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-20 11:28 [9fans] Character CR in Plan9? pmarin
2010-04-20 12:07 ` Rudolf Sykora
2010-04-20 12:25 ` pmarin
2010-04-20 12:26 ` erik quanstrom
2010-04-20 12:31 ` Mathieu Lonjaret
2010-04-20 12:37 ` yy
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).