delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/08/25/08:44:35

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:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=WQBiafu
FSN08kpIXE66H7O+oXBfuOVDOPkHhkRDkzodyvwa+7lW6990+9dhENYW4tcVhAog
EgEDqooSFTyLyImT5rejNTF5If0I0XtY6zyWmbNivN1OiZLKYK9rKqAlnEeSpO0c
edrKZ1cMkSdUzHn0rm+ifZd7Yx3GI+1e25Kc=
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:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; s=default; bh=Nv9JpmFAXFpf9
1rmm5V1AcRY078=; b=P5lk7qlTQcABj/oq7+w2KphzWVaG2C4lp+I33OVwYpsmA
SalZJfTuJeMF39Q0cEVRFzJXOoq3fAJM5t+sOLBZi6I7JzH5oZXNv+qq4vpSxt1I
xad6KuOTWnYUgtCYUa3ZYOFhm1OrmCsiOghzN+n3kfVsWFBOxBTY25A+sPhoBQ=
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.1 required=5.0 tests=AWL,BAYES_20,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=rightclick, darnley, Darnley, right-click
X-HELO: mail-it0-f44.google.com
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=NO8Ykr8547tbBoKasCGV9cGmyA8UrAXr4p3/cB7O+b8=; b=OJdjAFqXlhD3SFlIre3CldowcPeFYx8g1a+4dhO/0LfaCJRUUhnFrTpZZ59NNSg0oJ Pzu0DSdlCR8UiCPXRQoNALW1mLZFFnLXYr9+QUsm961GEBZCLw7cw9H7knJ9tgJWxDLW hRtGTaU/85NpSaIYXdnGa1I5cGRJomLPbIB5EmhunlqB0ddcnse+CKJYN9sdKne8FvxD OvRWlLkNmfFsihOQPfC5twM2UEJkGHyKSOREUKArnoiVkE3kzHNj5M08HVvyP8kNwHCf /nrklOkDg/jxlxssnvxPYPPKBE6dpSDfMpmOXaVUBEf4dHV6sBNpAyVjHz4Fk2Ru383v nEaw==
MIME-Version: 1.0
In-Reply-To: <3abb80cc-3fe3-d456-9220-7394a3b35ba6@towo.net>
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> <3abb80cc-3fe3-d456-9220-7394a3b35ba6 AT towo DOT net>
From: Lee <ler762 AT gmail DOT com>
Date: Sat, 25 Aug 2018 08:44:20 -0400
Message-ID: <CAD8GWsv5_-h4TCV0ijxY2N0cn=5JyhLhCGfKhQRL6USoEo-N9A@mail.gmail.com>
Subject: Re: speeding up a paste operation
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

On 8/25/18, wrote:
> 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,

Are there cygwin man pages or package descriptions somewhere?
I did a search on "getclip site:cygwin.com" and didn't see anything
that looked like a description.

> it goes through the terminal and the pty. Both are
> shortcut if you copy from /dev/clipboard, using either cat or cp.

ok... searched for 'cygwin getclip' and found
https://stackoverflow.com/questions/1322594/cygwin-command-to-copy-to-windows-clipboard
  The advantage of getclip/putclip over /dev/clipboard is that the
former have options to convert between unix and dos line endings.

so I do need to take a look at getclip :)

Thanks
Lee

--
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