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:message-id:date:from:to:references:subject :content-type; q=dns; s=default; b=NVvEBQpM2iunTCWYEltKNIVMjSxIB t0nnpfjVHSDI3UHgHCx8wcgXgVw1GoQCWzUH12/fcMcIg/HXhD02IkBWYStACnqj 8K29RohJodyl8vSkJglc03Ra4MWJt+wlneB0b14h6KtLr/LY+q31OlXS/Cy7UGHn 9ZV3J6IzUFkddY= 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:message-id:date:from:to:references:subject :content-type; s=default; bh=wD2IUO8ES7QAhybjVuh6Bvk1yxs=; b=eoe cOG87Ylt7tDvDAsLhE3pjfHQ1UQUnk8DwxKPtBEWIfR9NDANJvl5/5TkugqDz63R n+SdKPjQiqxgkhZ6BddLl/whHjRRxjz33uR+YfWY1+YXQdByAQRlUq6CKjTKsJzB nV0jAizEN8mG6+F5tYSpuXUtGgWiB2HHmUTjcERs= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*M:1c69fb81, million, Hx-languages-length:760, H*M:google X-HELO: mail-oi0-f46.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:to:references:subject:user-agent; bh=/wxPRd6kYKDUlLnd/TfKlRmBDlK1gym2POt0IH02pZI=; b=eLh52lHdwgYMrscTVPeadVh2abzPXSkvEgVb+98xBW23iqhPO2PIPEZZbFiF86EApd QKJtunoz/UmkPInmaMYiop5Yp+8GGu2r9n190Y0kgDuRkW4U9Y0nijpw1n6vuC7co8b4 1Vymr+f2lvLDKd4D6eCDba6WBSfKR45UQrCiS821cGhpytTAO8hiS+vUg8mrltG8DbVW /sXeoyEr6ToWRaUaLv8DVa+09RCUllx/7zattY8kLP4S3IlPanlTLhbEC3DfDOa5j4nS ivsD9aBgUYEvPQQ7be5oTEpJJ3QXlb7sYghKsNFqHjhg9XaTG+1q53Qlhof85YXOzhN9 /fNw== Message-ID: <5b80a0d3.1c69fb81.386aa.8658@mx.google.com> Date: Fri, 24 Aug 2018 17:20:35 -0700 (PDT) From: Steven Penny To: cygwin AT cygwin DOT com References: Subject: Re: speeding up a paste operation Content-Type: text/plain; charset=utf8; format=flowed User-Agent: Tryst/2.8.0 (cup.github.io/tryst) On Fri, 24 Aug 2018 19:30:10, 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)? Use the right tool for the job: $ time awk -F, '{print $2}' top-1m.csv > hosts.txt real 0m0.686s -- 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