From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wj0-f181.google.com ([209.85.210.181]) by ur; Wed Jan 11 13:22:14 EST 2017 Received: by mail-wj0-f181.google.com with SMTP id ew7so95099219wjc.3 for <9front@9front.org>; Wed, 11 Jan 2017 10:22:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=GV2lpChFiQmr4wWsQWUNH+QZXwzAN6yxr3jbvZriqQo=; b=PLpKorVeEGYgeL5a7bxAtgwvsmnUSPWKOwGHDLR1IpXeQfn+S40phYpJh9CcvRmb4r SG8Pl3djZEDVB82EDXs6Ed+IrOAzkNuT96wxP+tQpzTiCMXQ2WlYCoc+6Wtc4P1bnBcS A7ESjX5XtfC63ZDfL/AqE9ib3wz9oT6I/Vl5ijLfWxu0jE9A5Ui8uA1j4ixDE2IUQY8n wb80Ufprobt9PnrhPw/iCwV724mFLRcxIr8WMnIN+Xv5t90GKYhOHPsj5ErlXWZcg1dt bNUClFq5XOLpif6zkAcMompHo+IDXWOZ4w2gCsQxZcfvsY3momUTFtOvLPQAFV/kuOdc AEVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=GV2lpChFiQmr4wWsQWUNH+QZXwzAN6yxr3jbvZriqQo=; b=HxIyfmn7FoHfgbAcGbO6TJmbQhOPGblgREiYanToufTx37h4ryi5RZXjz/UfJ4xjoC llks4pAYKXadvlszUqSE8amxoXlGASQxQDZH2cFTyrkZXYd1dQhjeo0iy8JUAXViJSDz nC3kTb/coT0OJLUN+yRehSa6eigebaR/P6zer3Mapmaz+P6/FDEtUJf44ZzkbtA3JPCz ikiB1ZdPJIuoAp2YCCCV+8IGu3RyiA/MARGg1Z1xUDZElAw9py0yqq2vfryT0UhwFJ2A 90oruDiZUvR8WECGwvEvlHXWbv2O3ysoesK0D7e4fb+62SSmomnHS9KJgW0PIKhz0uYc haZA== X-Gm-Message-State: AIkVDXKDR9gAluws7wFvcTPCIYNY1P1fS4n1ClXmVXOHPx8TpXvgiPE9tv6X/QZ3yg/avV5nakDrhzt2JCdKEw== X-Received: by 10.195.19.68 with SMTP id gs4mr3103616wjd.139.1484158930707; Wed, 11 Jan 2017 10:22:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.143.164 with HTTP; Wed, 11 Jan 2017 10:22:10 -0800 (PST) In-Reply-To: <20170111180820.GA34061@wopr> References: <20170111180820.GA34061@wopr> From: Micael Ramos Date: Wed, 11 Jan 2017 16:22:10 -0200 Message-ID: Subject: Re: [9front] '\n' equivalent for command input To: 9front@9front.org Content-Type: multipart/alternative; boundary=001a11362cc0daee400545d5add5 List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: storage-oriented out-scaling-based framework --001a11362cc0daee400545d5add5 Content-Type: text/plain; charset=UTF-8 Like a charm, thanks Kurt. 2017-01-11 16:08 GMT-02:00 Kurt H Maier : > On Wed, Jan 11, 2017 at 04:05:02PM -0200, Micael Ramos wrote: > > There is another representation for newline other than '\n' for standard > > input? > > > > When running commands, '\n' is never recognized. Example: > > > > tr '\n' 'newline' < text.txt > > Look at the manpage for tr(1). Only octal is recognized. Try > > tr '\012' 'o' > > for instance. > > khm > > --001a11362cc0daee400545d5add5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Like a charm, thanks Kurt.

2017-01-11 16:08 GMT-02:00 Kurt H Maier= <= khm@sciops.net>:
On Wed, Jan 11, 2017 at 04:05:02PM -0200, Micael Ramos wrote:
> There is another representation for newline other than '\n' fo= r standard
> input?
>
> When running commands, '\n' is never recognized. Example:
>
> tr '\n' 'newline' < text.txt

Look at the manpage for tr(1).=C2=A0 Only octal is recognized.=C2=A0= Try

tr '\012' 'o'

for instance.

khm


--001a11362cc0daee400545d5add5--