help-nano
[Top][All Lists]
Advanced

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

Re: [Help-nano] pipe to nano


From: Markus Bergholz
Subject: Re: [Help-nano] pipe to nano
Date: Thu, 23 Jan 2014 11:29:07 +0100

Hi Chris
 
yes, nano - did it :)
 
Cheers
Markus

On Tue, Jan 21, 2014 at 4:17 AM, Chris Allegretta <address@hidden> wrote:
Hi markus,

I'm surprised that the command line you tried actually does that,
though I guess it makes sense.  The normal way to pipe data into nano
is to use the - argument
cmd | nano -

I hope this helps!

On 1/18/14, Markus Bergholz <address@hidden> wrote:
> Hi
> any chance to pipe into nano without nano is immediately closing?
>
>
> address@hidden/tmp]
> └──╼ export LC_ALL=C
> address@hidden/tmp]
> └──╼ export EDITOR=nano
> address@hidden/tmp]
> └──╼ echo -e "test\ntemplate" | $EDITOR testfile.md
> Received SIGHUP or SIGTERM
>
> Buffer written to testfile.md.save
> address@hidden/tmp]
> └──╼ cat testfile.md.save
> test template
>
>
>
> greetings
> Markus
>



--
icq: 167498924
XMPP|Jabber: address@hidden

reply via email to

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