delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/08/24/20:10:24

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=uqUsfUr
rLVzARWHwfGMLht1CzzKLvatiOd9Glu5k8JccuAoJPVgBDIzNMt3Ue+trryKiXfB
0TZxIHM2Y+2wtIbd0TTdpC4lscVIJcI8UR1As4AZCQZWFfsJbKceXtBk1OzfSSq3
ZT1N44G8Lk1DIVajVi9KcTAo3/VPGcp5h7qM=
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=THy1iaP07xd8S
+gPMaRPGHcU+3Y=; b=rbySzi/nAbZn1A9nCH717JdQhc6cldeR90G12taBq6u/P
4bX8UKL7+tRGJTmaVj5eAtjAzPsZwO0P8THznPMlAmvvW3njY7kukpfFtIhNSIYe
FuqID0Ym/vTU1/jUtPCe2RGqY/8FSLzd7wyd9XhZnHtb8ZkKEdOSKOVdqi/XFI=
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=-1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=HX-Google-Smtp-Source:ANB0VdZ, dos2unix, million, click
X-HELO: mail-it0-f48.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=FTX1tFYlhm0vgPgqPdN+xEamw0ZK5SaQLQ292Qx747o=; b=XYlRGfbHe+GvAS9R9Up64gNXf9IjHxaKU/kKuGTPEi/vwteCIaR0K4u5eMoYclgC3L to1EA9AMECofP6kd3/xT74aQjWhcELkQzdA+//6ts0nFfeiOmzBhigsMbcmS5dv9Q8CU ZKLmpXgp67e9z5uEMjpSdQqkxzLb1mohUBqsvaKPDgW/1A/Qq+pn7ANp0gQMKRPtQwha 4cTTbCRPeS0MGQE4VWxKaRRmovIiIsWnXearkb5TOXfNb08uvJVsZGdYVZyPtyjCLOOB /J/2juSG+p9XiZ2LUQfPYUFlFFrK8mhUM7YbjCFgpjx65DGtX54DhoOz/+PJEMe2morY +Fng==
MIME-Version: 1.0
In-Reply-To: <1e37af1d-21fa-9c56-b135-cb9a4375d902@gmail.com>
References: <CAD8GWstSbJHnP3XWKvhbtRisB=jJL7SJA9aMOWMJVDbMC_VdYA AT mail DOT gmail DOT com> <1e37af1d-21fa-9c56-b135-cb9a4375d902 AT gmail DOT com>
From: Lee <ler762 AT gmail DOT com>
Date: Fri, 24 Aug 2018 20:10:08 -0400
Message-ID: <CAD8GWstSh96mfvMmHFwfu4JJySUm-0doZsF7HX6LKWGqnyddMg@mail.gmail.com>
Subject: Re: speeding up a paste operation
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

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>

at least 'cat > /tmp/hosts' that goes faster than I can read.  But
while that's running I can open notepad, paste the 1M lines in there,
save to \cygwin\tmp\doshosts, open another mintty window & dos2unix
/tmp/doshosts -- all that before the <right-click paste> finishes :(

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