From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fortimail.online.lv ([81.198.164.220]) by ur; Wed Jan 11 13:30:25 EST 2017 Received: from mailo-proxy2 (smtp.online.lv [81.198.164.193]) by fortimail.online.lv with ESMTP id v0BIUDsR003384-v0BIUDsT003384 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO) for <9front@9front.org>; Wed, 11 Jan 2017 20:30:13 +0200 Received: from mailo-b6 (10.95.60.11) by mailo-proxy2 (Axigen) with ESMTPA id 2FCA9C; Wed, 11 Jan 2017 20:30:13 +0200 Received: from mailo-proxy2 (10.95.60.4) by mailo-b6 (Axigen) with ESMTPA id 0E5432; Wed, 11 Jan 2017 20:30:13 +0200 Received: from localhost (10.95.60.254) by mailo-proxy2 (Axigen) with ESMTPA id 06F640; Wed, 11 Jan 2017 20:30:13 +0200 Date: Wed, 11 Jan 2017 20:30:12 +0200 From: Antons Suspans To: 9front@9front.org Subject: Re: [9front] '\n' equivalent for command input Message-ID: <20170111183012.GA15445@ax.s16> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) DomainKey-Status: no signature DKIM-Status: no signature X-AXIGEN-DK-Result: No records X-AXIGEN-DKIM-Result: No records List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: overflow-preventing storage singleton 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 > > > Thanks, > Micael. In rc shell you can use a literal linefeed, too: tr ' ' n or store it in a variable instead: lf = ' ' echo foo^$lf^bar^$lf^baz