From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: GH Newsgroups: gmane.emacs.help Subject: remove duplicates lines in a buffer Date: Thu, 22 Dec 2022 19:59:45 +0100 Message-ID: <87ili3mfha.fsf@gnuhacker.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18928"; mail-complaints-to="usenet@ciao.gmane.io" To: Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 22 20:00:28 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p8Qns-0004mU-G0 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 22 Dec 2022 20:00:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p8QnM-0004Ed-L5; Thu, 22 Dec 2022 13:59:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p8QnK-0004EK-5Q for help-gnu-emacs@gnu.org; Thu, 22 Dec 2022 13:59:54 -0500 Original-Received: from 217.216.68.90.dyn.user.ono.com ([217.216.68.90] helo=smtp.gnuhacker.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p8QnI-0003IJ-2B for help-gnu-emacs@gnu.org; Thu, 22 Dec 2022 13:59:53 -0500 Original-Received: from encrypted.gnu.org (localhost [127.0.0.1]) by smtp.gnuhacker.org (Postfix) with ESMTP id 9926D6014F1 for ; Thu, 22 Dec 2022 19:59:45 +0100 (CET) Received-SPF: none client-ip=217.216.68.90; envelope-from=project@gnuhacker.org; helo=smtp.gnuhacker.org X-Spam_score_int: 24 X-Spam_score: 2.4 X-Spam_bar: ++ X-Spam_report: (2.4 / 5.0 requ) BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.001, PDS_RDNS_DYNAMIC_FP=0.001, RCVD_IN_PBL=3.335, RCVD_IN_SORBS_DUL=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_NONE=0.001, TVD_RCVD_IP=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141898 Archived-At: A program give me huge logs with duplicated lines I _need_ to simplify this huge file removing duplicated lines. any tool to do it? maybe a func? I think in a function that do a list with lines maybe using (push (NEWELT PLACE)) ... in a while cycle but dont push a line if it exist in the list, maybe checking it with (dolist ...) then to write the list in a new buffer