help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Create newline in here-document mode


From: Greg Wooledge
Subject: Re: [Help-bash] Create newline in here-document mode
Date: Mon, 21 May 2018 12:56:59 -0400
User-agent: NeoMutt/20170113 (1.7.2)

On Mon, May 21, 2018 at 06:19:14PM +0200, Garreau, Alexandre wrote:
> Le 21/05/2018 à 16h59, Pierre Gaston a écrit :
> > C-v C-j seems to work (C-v to "quote" ie to insert the next char
> > literally C-j is newline)
> 
> You mean like emacs’ C-q? Is there also something like C-o for opening a
> line after point?

Ctrl-V is the "literal next" character at the terminal driver level
(cf. stty -a | grep lnext).  You can use it to insert literal carriage
returns and other control characters when editing files in vi, or when
providing input via the canonical terminal driver mode (e.g. cat > file).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]