From debbugs-submit-bounces@debbugs.gnu.org Fri May 17 11:47:26 2013 Received: (at submit) by debbugs.gnu.org; 17 May 2013 15:47:26 +0000 Received: from localhost ([127.0.0.1]:49143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UdMsQ-0003oX-2z for submit@debbugs.gnu.org; Fri, 17 May 2013 11:47:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37329) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UdKnJ-0006fc-K3 for submit@debbugs.gnu.org; Fri, 17 May 2013 09:34:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UdKms-0008V2-AG for submit@debbugs.gnu.org; Fri, 17 May 2013 09:33:40 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:45845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdKms-0008Uy-7b for submit@debbugs.gnu.org; Fri, 17 May 2013 09:33:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdKml-0005CK-TL for bug-coreutils@gnu.org; Fri, 17 May 2013 09:33:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UdKma-00088U-2A for bug-coreutils@gnu.org; Fri, 17 May 2013 09:33:27 -0400 Received: from moutng.kundenserver.de ([212.227.17.9]:51215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdKmZ-00085C-P3 for bug-coreutils@gnu.org; Fri, 17 May 2013 09:33:15 -0400 Received: from weber-dev.localnet (host-82-135-63-117.customer.m-online.net [82.135.63.117]) by mrelayeu.kundenserver.de (node=mrbap3) with ESMTP (Nemesis) id 0M0zHj-1UMmQw1prr-00vALB; Fri, 17 May 2013 15:33:13 +0200 From: Konstantin Weber To: bug-coreutils@gnu.org Subject: cut -c --output-delimiter stops inserting delimiters : bug? Date: Fri, 17 May 2013 15:33:12 +0200 Message-ID: <1916005.J8Leuc39YD@weber-dev> User-Agent: KMail/4.7.2 (Linux/3.1.10-1.19-desktop; KDE/4.7.2; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Provags-ID: V02:K0:UboQY7PrBm+QlcpHn5rdebofNrBd1ajGbormn0J/TOL j1hbBQj9Ds4fp8mZ1dxdJh1b19DexNF2yJpXqI6l4Pv6PCBqbR Z7izi5GHpdtinP9We1HPsir5UzN/WCxDrbXCL1X1DmbH7C5wls xU96ZhLhdR82Y8PR5V6NCZ89ZU1BiYLZD1MDQR+Qj5r6hdmC5d 0j6EwQbWCcLaoXz/7MMIgTSnFz4NvljDImQDPqeDvU1N37AESk MG/aAMNOJS+m+O4SgeDA1S3rbnv07zjGmIM7q6Yrl7h6WGCOzh xr6ikzYRrLHnDtiO3GllukkrKvXZ12sb7XC6MG95qSsZcbMiVL DZfd3v6pIeW8rl1roj15G+A9M29wB7Xd66HBm0r0j X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 17 May 2013 11:47:23 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Hello, today I received a large text file with fixed-length data fields to imp= ort them into our databases. I used the mighty cut but had to discover that it stops inserting outpu= t-delimiters when there are a lot of ranges. My prompt was: cut -b30-34,37-41,53-82,83-112,113-142,143-148,153-182,233-262,263-292,= 293-322,323-327,233-352 --output-delimiter=3D";" GER0506.dat > GER0506_= true.csv The output only has the first 7 semicolons of the expected eleven. I fixed it for my case by running cut a second time ( cut -b1-172,174-202,204-232,234-238,244-263 --output-delimiter=3D";" GE= R0506_true.csv > GER0506.csv ) but decided to report this behaviour because it seems undesired. Eith= er I get output-delmiters (all of them) or not. Is this a bug? > cut --version cut (GNU coreutils) 8.14 Copyright =A9 2011 Free Software Foundation, Inc. From debbugs-submit-bounces@debbugs.gnu.org Fri May 17 12:50:58 2013 Received: (at 14416) by debbugs.gnu.org; 17 May 2013 16:50:58 +0000 Received: from localhost ([127.0.0.1]:49214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UdNru-0007Iw-As for submit@debbugs.gnu.org; Fri, 17 May 2013 12:50:58 -0400 Received: from mail2.vodafone.ie ([213.233.128.44]:20318) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UdNro-0007IM-UJ for 14416@debbugs.gnu.org; Fri, 17 May 2013 12:50:54 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkoDAHZellFtTf5u/2dsb2JhbAANTcIhgmMDAYEUgxMBAQEEMgFGEAsNCwkWDwkDAgECAUUGDQEHAQGyY5JljkJfB4NUA515jg8 Received: from unknown (HELO [192.168.1.79]) ([109.77.254.110]) by mail2.vodafone.ie with ESMTP; 17 May 2013 17:50:29 +0100 Message-ID: <51965FD5.5020109@draigBrady.com> Date: Fri, 17 May 2013 17:50:29 +0100 From: =?ISO-8859-1?Q?P=E1draig_Brady?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Konstantin Weber Subject: Re: bug#14416: cut -c --output-delimiter stops inserting delimiters : bug? References: <1916005.J8Leuc39YD@weber-dev> In-Reply-To: <1916005.J8Leuc39YD@weber-dev> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 14416 Cc: 14416@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) tag 14416 notabug close 14416 stop On 05/17/2013 02:33 PM, Konstantin Weber wrote: > Hello, > > today I received a large text file with fixed-length data fields to import them into our databases. > I used the mighty cut but had to discover that it stops inserting output-delimiters when there are a lot of ranges. > > My prompt was: > cut -b30-34,37-41,53-82,83-112,113-142,143-148,153-182,233-262,263-292,293-322,323-327,233-352 --output-delimiter=";" GER0506.dat > GER0506_true.csv You typoed it. s/233-352/328-352/ Or if you expected that to duplicate part of the line to a new field, cut doesn't support that, and I suggest you preprocess first if you want that. cheers, Pádraig. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 18 20:32:26 2018 Received: (at control) by debbugs.gnu.org; 19 Oct 2018 00:32:26 +0000 Received: from localhost ([127.0.0.1]:57752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gDIiH-0001GM-Q5 for submit@debbugs.gnu.org; Thu, 18 Oct 2018 20:32:26 -0400 Received: from mail-pl1-f174.google.com ([209.85.214.174]:44429) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gDIiF-0001Bc-PD for control@debbugs.gnu.org; Thu, 18 Oct 2018 20:32:24 -0400 Received: by mail-pl1-f174.google.com with SMTP id d23-v6so1618451pls.11 for ; Thu, 18 Oct 2018 17:32:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:message-id:date:user-agent:mime-version:content-language :content-transfer-encoding; bh=6QM7lwxzT1aPm+p3oT6x/Xvn3FQ/TU6uC2gJYw9h4tM=; b=Z1G790LD3ateD+OGyor/LuKg0sMOFoWHx20KBAa6kyBok7IGGUI2EG+mdhDIJ2LyjU p9q0oAebcmrYs0Xuw6nEMzXJodUucKNMt8q92TGHr6GM3PTaxOxfmecZg9UOkbQwuttq IuZcP039PCPSWXSU46XTEBB0og1/WnlKMGQ7vQnSGik03q/PImux19cT7h1gHYFJR0MT OOBzFMfmtbyBScPiuhYHZn9vHbmgNf1qTU2v8Yg/nGtUw7EDkciKSXNd4HZA5lTDhrrg +g2WYQlIXB5b1H4KY1JM+fchxL36Q1Bl+P2YhUTelFQN4j6MilADGPZyg2uFRnyElNRb LJRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=6QM7lwxzT1aPm+p3oT6x/Xvn3FQ/TU6uC2gJYw9h4tM=; b=OFiykb7Tj0GldayDAwZYJkMEGIXiphp2TadOpNhwii6Hn2srPiCbNedftLYvob+kfC qWLo1WUk6tdUWxM0oxamLwo1LDOtfZqmieyPQ8+xt2PzZuomLCjD+J6GAbAUelGCCizr 1Xzi+7W5I20xgU+rTvEGe87pT9aik54bfwdDQyDzpVg4ceL5EF6VsV+s0isF/MitUUh8 kCspwqvF2VVbOn8/cYXcraR4zGN1xKlvTRVTDg8A+Mbnx+1wJQZ+MqwxbjzUHdJV9/G3 wmkvbFWjoVmcDlxrWcdhenqSnmeR3rZV+xVWkn2NMwJZ+1ShAL00I4i28MIhdZVs6194 XcCQ== X-Gm-Message-State: ABuFfojXkOII2Szij7tHJT+YfAmHywiI/eRnDK2wANgjO8L3DeIuCxGZ 8uL1QWKo60iJF5NcH8d1MiHHAl9hh8k= X-Google-Smtp-Source: ACcGV61+rIs1IYpVBwjfMXOjJ0GNNuXfm3/C4LHlZF7p3IWj/25JPRxdyGDzjBzYVSLiaPBDVmc5XQ== X-Received: by 2002:a17:902:9a0c:: with SMTP id v12-v6mr31909755plp.159.1539909137604; Thu, 18 Oct 2018 17:32:17 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id k70-v6sm26765538pfc.76.2018.10.18.17.32.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Oct 2018 17:32:16 -0700 (PDT) To: control@debbugs.gnu.org From: Assaf Gordon Message-ID: Date: Thu, 18 Oct 2018 18:32:15 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 14416 notabug close 14416 stop [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.214.174 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (assafgordon[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.214.174 listed in wl.mailspike.net] 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) tags 14416 notabug close 14416 stop From unknown Sun Jun 22 03:56:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 16 Nov 2018 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator