X-Loop: help-debbugs@HIDDEN Subject: bug#51921: Anything like ztail Resent-From: Peng Yu <pengyu.ut@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gzip@HIDDEN Resent-Date: Wed, 17 Nov 2021 13:09:01 +0000 Resent-Message-ID: <handler.51921.B.163715454032614 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 51921 X-GNU-PR-Package: gzip X-GNU-PR-Keywords: To: 51921 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gzip@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.163715454032614 (code B ref -1); Wed, 17 Nov 2021 13:09:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 Nov 2021 13:09:00 +0000 Received: from localhost ([127.0.0.1]:60418 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mnKgM-0008Tx-Sq for submit <at> debbugs.gnu.org; Wed, 17 Nov 2021 08:09:00 -0500 Received: from lists.gnu.org ([209.51.188.17]:60260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <pengyu.ut@HIDDEN>) id 1mnKgH-0008Ti-In for submit <at> debbugs.gnu.org; Wed, 17 Nov 2021 08:08:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <pengyu.ut@HIDDEN>) id 1mnKgH-00062r-E6 for bug-gzip@HIDDEN; Wed, 17 Nov 2021 08:08:53 -0500 Received: from [2a00:1450:4864:20::131] (port=40808 helo=mail-lf1-x131.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <pengyu.ut@HIDDEN>) id 1mnKgG-0000xd-4a for bug-gzip@HIDDEN; Wed, 17 Nov 2021 08:08:53 -0500 Received: by mail-lf1-x131.google.com with SMTP id l22so8166845lfg.7 for <bug-gzip@HIDDEN>; Wed, 17 Nov 2021 05:08:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=P8fIiGUxTFWFTGKD84QQzK09BcRMpCm49zUPFr/vd+E=; b=a4XLRyfa9ggdIJdIPX9hv0OuRRZWAPLGWPeIIAzkUtKMBbADVvMYMJZi0RcBpGujDY kyD1b7RuQJZMgAVFeSwNGqRAR7gptxrzBwmpHd0lSnF6htmyPx39cH2Bcmz3nGGcFJzf 4nvjw5DHBicbcHeXHTcCGPFQzbr4DeVgqFZZ8vjdSKMJ6beyzzbyxpcg8Pli/KGGf2Bh dW4kswqbY+tMQkPfvMqzCnTZqsujSuGJMyeXfLidsku4NH/4X7WN13EmpBVJA5kdrY0C zg3nY+Dl5vuHuxKdJJK/ntKeSbQXv/8DqL8Kqx7k/liQIJPzDvcaC2YNoLBtBDnr15RY tvIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=P8fIiGUxTFWFTGKD84QQzK09BcRMpCm49zUPFr/vd+E=; b=Rr8NG7zTGYo5WAJm/AQy49qxqHw+cEC2lNR+Qw2ov51Zm4DEIDrU1ZjzwzRN/UvDEM 6V/yRNBGLFPwOnPkQwN/NssivI2XTZfYd5Y0Ww0YxTGSTQIMRhPABZXM9Nx3JUAWyro2 P4SOV5p4dwJJ5wFro6i/CiLDPZ0dowIqMETMJdapA5OEBahNgGbYEMtA6IWL9EoeVkeY AvXvlVVBEwl9YtFdw5ZIbWrrilajqfC4p8LvR2nBjT+KI008eNghETLLpP2I11gkHtwQ M8+sLqwqf6hXHh6nPW0MxniBrjCnMX57T+pWKtOLqkMsfFfdPISpsCsEq3EiOmo/8GF2 MiuA== X-Gm-Message-State: AOAM533BzooAAYj8oNQWGZZTQMl49IpseBn8H7Y8abH/ova2cQPu/Cir +QgP0NRYQ6N4ZUa6DdLxQVbuZiws5j8P+ZfrHhFGBJl/ X-Google-Smtp-Source: ABdhPJxlgHIf7gSgW5mbKMIluD0nlh/kHOoaVcpCkck1zuWs2GKNozoHgI0bY55AVgrFEN2Q6pldFTNzPth7uTTWxOQ= X-Received: by 2002:a05:6512:3d90:: with SMTP id k16mr15194400lfv.361.1637154529374; Wed, 17 Nov 2021 05:08:49 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a2e:9dc9:0:0:0:0:0 with HTTP; Wed, 17 Nov 2021 05:08:48 -0800 (PST) From: Peng Yu <pengyu.ut@HIDDEN> Date: Wed, 17 Nov 2021 07:08:48 -0600 Message-ID: <CABrM6w=4fBEscONrQjsz968pf2RaAXVHE7FbwBaVMEZAwkb5Eg@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::131 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::131; envelope-from=pengyu.ut@HIDDEN; helo=mail-lf1-x131.google.com X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) Hi, Is there a more efficient way to perform ztail. I could use 'zcat f.gz | tail'. But this means that it needs to go through the file until the end. It would be more efficient to just check the end (as `tail f.txt` does it). Is there a way to make ztail more efficient? -- Regards, Peng
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Peng Yu <pengyu.ut@HIDDEN> Subject: bug#51921: Acknowledgement (Anything like ztail) Message-ID: <handler.51921.B.163715454032614.ack <at> debbugs.gnu.org> References: <CABrM6w=4fBEscONrQjsz968pf2RaAXVHE7FbwBaVMEZAwkb5Eg@HIDDEN> X-Gnu-PR-Message: ack 51921 X-Gnu-PR-Package: gzip Reply-To: 51921 <at> debbugs.gnu.org Date: Wed, 17 Nov 2021 13:09:01 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gzip@HIDDEN If you wish to submit further information on this problem, please send it to 51921 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 51921: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D51921 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#51921: Anything like ztail Resent-From: Paul Eggert <eggert@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gzip@HIDDEN Resent-Date: Wed, 17 Nov 2021 20:34:02 +0000 Resent-Message-ID: <handler.51921.B51921.163718122421886 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 51921 X-GNU-PR-Package: gzip X-GNU-PR-Keywords: To: Peng Yu <pengyu.ut@HIDDEN> Cc: 51921 <at> debbugs.gnu.org Received: via spool by 51921-submit <at> debbugs.gnu.org id=B51921.163718122421886 (code B ref 51921); Wed, 17 Nov 2021 20:34:02 +0000 Received: (at 51921) by debbugs.gnu.org; 17 Nov 2021 20:33:44 +0000 Received: from localhost ([127.0.0.1]:34005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mnRcl-0005gw-Qx for submit <at> debbugs.gnu.org; Wed, 17 Nov 2021 15:33:44 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:45418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eggert@HIDDEN>) id 1mnRci-0005gN-7r for 51921 <at> debbugs.gnu.org; Wed, 17 Nov 2021 15:33:41 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id E57551600C5; Wed, 17 Nov 2021 12:33:34 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 1q-u3wib2L_q; Wed, 17 Nov 2021 12:33:34 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 197A51600D1; Wed, 17 Nov 2021 12:33:34 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id pIQR4dRPxqft; Wed, 17 Nov 2021 12:33:34 -0800 (PST) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id E61731600C5; Wed, 17 Nov 2021 12:33:33 -0800 (PST) Message-ID: <8161763d-d454-8217-0617-4b7e0af20caf@HIDDEN> Date: Wed, 17 Nov 2021 12:33:33 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Content-Language: en-US References: <CABrM6w=4fBEscONrQjsz968pf2RaAXVHE7FbwBaVMEZAwkb5Eg@HIDDEN> From: Paul Eggert <eggert@HIDDEN> Organization: UCLA Computer Science Department In-Reply-To: <CABrM6w=4fBEscONrQjsz968pf2RaAXVHE7FbwBaVMEZAwkb5Eg@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.4 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.4 (---) On 11/17/21 05:08, Peng Yu wrote: > Is there a way to make ztail more efficient? Not in general, no. The compressed file can't be decompressed from random locations. There might be some options for doing what you're suggesting if --rsyncable is used during compression (which it usually isn't) and if someone would like to code up something for gzip (which would be nontrivial).
Received: (at control) by debbugs.gnu.org; 17 Nov 2021 20:33:42 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 17 15:33:41 2021 Received: from localhost ([127.0.0.1]:34003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mnRcj-0005ge-Jy for submit <at> debbugs.gnu.org; Wed, 17 Nov 2021 15:33:41 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:45382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eggert@HIDDEN>) id 1mnRcf-0005gH-L2 for control <at> debbugs.gnu.org; Wed, 17 Nov 2021 15:33:40 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6CBAA1600AD for <control <at> debbugs.gnu.org>; Wed, 17 Nov 2021 12:33:31 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id KaCC1SnF8-lW for <control <at> debbugs.gnu.org>; Wed, 17 Nov 2021 12:33:30 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id D16991600C5 for <control <at> debbugs.gnu.org>; Wed, 17 Nov 2021 12:33:30 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 281vh6FZTnxD for <control <at> debbugs.gnu.org>; Wed, 17 Nov 2021 12:33:30 -0800 (PST) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id B00761600AD for <control <at> debbugs.gnu.org>; Wed, 17 Nov 2021 12:33:30 -0800 (PST) Message-ID: <f486483a-a980-4abb-a9eb-355eac73efeb@HIDDEN> Date: Wed, 17 Nov 2021 12:33:30 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Content-Language: en-US To: control <at> debbugs.gnu.org From: Paul Eggert <eggert@HIDDEN> Subject: 51921 is wishlist Organization: UCLA Computer Science Department Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) severity 51921 wishlist
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.