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=O+Gt0BfSddqLn+h2 bOMJFSUDkCwA7Tn7IABz4B0WM80od3+aJwwZyLXeFW9jvBA2cCMc1kol2JL4Ba+W v9A0vSuHYWOBHvOTVq6sCLmikor03ab6jsuLSiRz6egwyOw3cqexe6NmpEkza62L CohINa5GwOM04UX7LQM2ALoQXco= 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=8iFsCNgrJDKCDCdAnvJoh0 HQrHc=; b=jAiGfEFROqWX2JzbUMamh9AoAA/s3a0lBoX7vszP37JJ0mgwVeLL7f HLxCUfYjC/J4TFHNK0O64DmnRBcVs/6Bl7PWEmTDF9/9B33hIaTnV6IlDux9715a InHmOCtweRMZRMMUoSgIom8vSHnu5/U+lxnSJBq1X0ZXqoL9tFUNI= 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=-0.6 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=dos2unix, million, rightclick, right-click X-HELO: proxy.razorcat.com Subject: Re: speeding up a paste operation To: cygwin AT cygwin DOT com References: <1e37af1d-21fa-9c56-b135-cb9a4375d902 AT gmail DOT com> From: Frank Redeker Message-ID: <8ea768ba-0fdb-710f-e41a-c9bc52057198@razorcat.de> Date: Sat, 25 Aug 2018 06:55:37 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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 > > > 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 finishes :( > > Thanks, > LeeHi Lee, what about 'cp /dev/clipbord /tmp/hosts'? Frank -- 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