delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/08/25/03:11:02

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=KsVeXTGUblJRyFs+
x0yFpZhncMy02DfiiZtIV+CT0p2Kzt1hLVsmMQFIXXW0IvSTzcMva4xsM8m+dx3v
i8olFnaTXh8wJFBysQIh6I9V5Ioq58968p/g9MKYZ4kg6REuqffM/NSQ0lTBug+T
LJMx+XZbG6/KQmwAfJEpfpmyNT4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=XS0H6749cCv3qdBlLtAhLj
TfEZ0=; b=oomI3xXQycLdAEpaj8N/5CMaNn/6WiQFukB4qmrbUVBSL6xYGlXnur
rMqPZ4JKsjybpZD21jJmYvya9aHCZthMwWNQvJ5Jpav2CmLsfEYV0Ua/zqxDSPb6
uCucjg6gVx3IL1ZZEqA1vJHHasnZC8VzA+1fL7w5qyxPEGkFimjPo=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=million, rightclick, right-click, darnley
X-HELO: mout.kundenserver.de
Subject: Re: speeding up a paste operation
To: cygwin AT cygwin DOT com
References: <CAD8GWstSbJHnP3XWKvhbtRisB=jJL7SJA9aMOWMJVDbMC_VdYA AT mail DOT gmail DOT com> <1e37af1d-21fa-9c56-b135-cb9a4375d902 AT gmail DOT com> <CAD8GWstSh96mfvMmHFwfu4JJySUm-0doZsF7HX6LKWGqnyddMg AT mail DOT gmail DOT com>
From: Thomas Wolff <towo AT towo DOT net>
Message-ID: <3abb80cc-3fe3-d456-9220-7394a3b35ba6@towo.net>
Date: Sat, 25 Aug 2018 09:10:45 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <CAD8GWstSh96mfvMmHFwfu4JJySUm-0doZsF7HX6LKWGqnyddMg@mail.gmail.com>
X-IsSubscribed: yes

Am 25.08.2018 um 02:10 schrieb Lee:
> On 8/24/18, James Darnley wrote:
>> On 2018-08-25 01:30, Lee wrote:
>>> In retrospect, I should have created the file some other way, but still..
>>> - grab the top 1M hosts from from
>>> http://s3-us-west-1.amazonaws.com/umbrella-static/index.html
>>> - open w/ libreoffice
>>> - select the host name column, right click & select copy (all 1 million
>>> lines)
>>> - (mintty 2.9.0 window already open) vi /tmp/hosts
>>> - i  (get into insert mode)
>>> - right click (which I have set to "paste")
>>>
>>> data is still scrolling by & it's not even up to 100K lines yet :(
>>>
>>> Is there some way to make a paste operation faster in mintty (or vim
>>> or whatever the slowpoke is)?
>> There's a utility called getclip which put the clipboard onto stdout.
>> Direct that into a file and you should get the same result, excluding
>> Vim's indentation.  Probably doesn't use the tty in anyway.
> Is getclip different from
>    cat > /tmp/hosts
>    <right-click to paste in the 1M lines>
Of course it is, it goes through the terminal and the pty. Both are 
shortcut if you copy from /dev/clipboard, using either cat or cp.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019