From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 16 11:22:57 2016 Received: (at submit) by debbugs.gnu.org; 16 Jul 2016 15:22:57 +0000 Received: from localhost ([127.0.0.1]:53915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bORQf-0007G0-FG for submit@debbugs.gnu.org; Sat, 16 Jul 2016 11:22:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bOIpQ-0007YK-FD for submit@debbugs.gnu.org; Sat, 16 Jul 2016 02:11:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOIpK-0004Va-7L for submit@debbugs.gnu.org; Sat, 16 Jul 2016 02:11:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47674) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOIpK-0004VJ-4S for submit@debbugs.gnu.org; Sat, 16 Jul 2016 02:11:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOIpH-0007p3-TJ for bug-coreutils@gnu.org; Sat, 16 Jul 2016 02:11:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOIpF-0004V3-IN for bug-coreutils@gnu.org; Sat, 16 Jul 2016 02:11:46 -0400 Received: from mail-it0-x235.google.com ([2607:f8b0:4001:c0b::235]:36216) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOIpF-0004Ui-Ck for bug-coreutils@gnu.org; Sat, 16 Jul 2016 02:11:45 -0400 Received: by mail-it0-x235.google.com with SMTP id f6so34862517ith.1 for ; Fri, 15 Jul 2016 23:11:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=Uq6hXLIDYnIbmVhugx0pQJ1WZgENdJQSSzduxGYpolE=; b=fpzNXOI2SEwA9/FOxhxYGN3w1yNwJeUbpzMX5Uhv+mpS3E9n4snzBNKFsDi7OAqCdN Sf8/5eEKBLuUmJ4CQiC4aL+E4ag7gfvrTaonEAIzlDgF23Jj2Q+lgQf3ngD2UpYyfa2E dfHkjy/nqJ3JUSFNzhyTp9hi+RPSCmFbyrsPnLqq3T8rAKnaiNG4KXnTSzqRi6FTx/8Y szAxoB0MI6SMvkxlqUo4jRJgGDj/GePMhNfFNR6VnQHMvuXDf8ZONuVRvhQY+6vtVZgS RvUpU3SJ4jYqeORs9Rh1T8GjYhU+KW20lKdIM2LoE6M3CNQlhg+QQT5ihkh2TekTzWRg lO8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Uq6hXLIDYnIbmVhugx0pQJ1WZgENdJQSSzduxGYpolE=; b=gJNA1Q+BX8Cq9SDQNZJeX42XJFkNYAofZIN6TfcLbvxskdWA0wCdtawHB9aRPy0Jbi HXN7VxEDA2L5W6rvXpoWW7GMokGsiaxnIbZI9NiyhzTza5mTdhLQm+EPzuK4r02gXKND CAqtrAZlG65vur3B89tPY9WYJzaOERGN3bJkxyY9sLv0zfYqT653nqJTaK4G4gry3HY4 4fshvCbtIS3ubiPFeiZ2pz1BpRLf0R+P2zlPN7cnLL613M0bOZYq5x0+hCFc/Ekh8Tdh unmip3oSbPNRTdL4Vk8KJ9NSh8lPtxlS5a+UVIo/e1+gHe4j5yxAucQz4gasMX9hsXVc Vh9w== X-Gm-Message-State: ALyK8tLwLMW/YsNGLx+028a4C1gZ+btulBc4oc4lObTI3IVudXZzRIa/Zc7ze1Uawo8SWE/+v0ltMgf4G0BjIQ== X-Received: by 10.36.211.137 with SMTP id n131mr38758144itg.6.1468649503153; Fri, 15 Jul 2016 23:11:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.153.106 with HTTP; Fri, 15 Jul 2016 23:11:42 -0700 (PDT) From: NAVEEN KUMAR Date: Sat, 16 Jul 2016 11:41:42 +0530 Message-ID: Subject: Report cat bugs to bug-coreutils@gnu.org To: bug-coreutils@gnu.org Content-Type: multipart/alternative; boundary=001a1145e040ef648e0537ba9bb3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 16 Jul 2016 11:22:56 -0400 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: -3.8 (---) --001a1145e040ef648e0537ba9bb3 Content-Type: text/plain; charset=UTF-8 Hi Team, Greetings! I was sitting next my system looking for some basic code brush up and was playing with CAT command, and though of some kind of additional features to our existing CAT command, such as... *"Write a CAT command program, which will allow appending text or lines of code at user specified line" not only at the end of file.* *Ex: cat >> filename.c line_number * Please suggest. Thanks, LoveToCode(DreamWalker) --001a1145e040ef648e0537ba9bb3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Team,

Greetings!<= br>
I was sitting next my system looking for some basic code brush= up and was playing with CAT command, and though of some kind of additional= features to our existing CAT command, such as...

"Write a C= AT command program, which will allow appending text or lines of code at use= r specified line" not only at the end of file.

<= b>Ex: cat >> filename.c line_number

Plea= se suggest.

Thanks,
LoveToCode(DreamWalker)
<= div>


--001a1145e040ef648e0537ba9bb3-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 16 12:39:57 2016 Received: (at 24007) by debbugs.gnu.org; 16 Jul 2016 16:39:57 +0000 Received: from localhost ([127.0.0.1]:53981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bOSdA-0000eF-QH for submit@debbugs.gnu.org; Sat, 16 Jul 2016 12:39:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bOSd8-0000e1-6s for 24007@debbugs.gnu.org; Sat, 16 Jul 2016 12:39:54 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1820063E0B; Sat, 16 Jul 2016 16:39:50 +0000 (UTC) Received: from [10.3.116.197] (ovpn-116-197.phx2.redhat.com [10.3.116.197]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u6GGdnjs009180; Sat, 16 Jul 2016 12:39:49 -0400 Subject: Re: bug#24007: Report cat bugs to bug-coreutils@gnu.org To: NAVEEN KUMAR , 24007@debbugs.gnu.org References: From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Organization: Red Hat, Inc. Message-ID: <578A6354.9020309@redhat.com> Date: Sat, 16 Jul 2016 10:39:48 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Sm8MUpWLIPno7dleThf73lkhEm7qthldh" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Sat, 16 Jul 2016 16:39:50 +0000 (UTC) X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 24007 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: -6.3 (------) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Sm8MUpWLIPno7dleThf73lkhEm7qthldh Content-Type: multipart/mixed; boundary="ctnasmQuP0FUswP0DRxkh6OSRkvcpX6U1" From: Eric Blake To: NAVEEN KUMAR , 24007@debbugs.gnu.org Message-ID: <578A6354.9020309@redhat.com> Subject: Re: bug#24007: Report cat bugs to bug-coreutils@gnu.org References: In-Reply-To: --ctnasmQuP0FUswP0DRxkh6OSRkvcpX6U1 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable tag 24007 notabug thanks On 07/16/2016 12:11 AM, NAVEEN KUMAR wrote: > Hi Team, >=20 > Greetings! >=20 > I was sitting next my system looking for some basic code brush up and w= as > playing with CAT command, and though of some kind of additional feature= s to > our existing CAT command, such as... >=20 >=20 >=20 > *"Write a CAT command program, which will allow appending text or lines= of > code at user specified line" not only at the end of file.* >=20 > *Ex: cat >> filename.c line_number * That won't work. The >> operator in the shell opens a file in append-only mode, and the operating system enforces that in append mode, data can only be added at the end, not the middle. Furthermore, what you suggested can already be done with sed, so there is no real reason to bloat cat to add non-standard functionality that can already be done with a standard tool. sed "$line r $file_to_insert" $file_to_expand inserts the contents of $file_to_insert starting at line $line of the file $file_to_expand, and pipes the resulting concatenation to stdout. These days, it's a very high bar to justify adding new features, and we prefer to save additions for things that either match other implementations or that accomplish things more efficiently than what is possible using only standard tools. Therefore, I'm closing this feature suggestion in the bug database as it is unlikely to be implemented, but do feel free to add further comments on the thread. Feature suggestions can be sent to coreutils@gnu.org, rather than the bug list, if you are not sure whether it is worth pursuing, so that we don't clog up the bug database. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --ctnasmQuP0FUswP0DRxkh6OSRkvcpX6U1-- --Sm8MUpWLIPno7dleThf73lkhEm7qthldh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJXimNUAAoJEKeha0olJ0Nq4O8H/0v1+rry+X31MQHPcYc/0rqb WPlJszd9zW/XNQ9JtTvba8YAL4YNj1VW7kduAI94SZ5uBJGEGUnM7WDnqqZQHJmD D7hjfYwt3EfA30RAwZwals9/I5LVR6NVp4dCWMZC2s1Uj9CTohoC13ZhEqMOWy1b pLqJuonNtiDhijB85TOeEIsM5oNxvcvGBXnOksGCVQn4OcNKMPMNEnSWUZvQk+vu jpLmR7z34pAOrsH0Nv9FOg3W53HGlnmqcw/S++KaQ7gg1+C8ew7+LW42c6L1d+Pl wrWdvvmGFZB/3yY4gXTe/pcPFVmB+CasiWDx6DP9ygbo2kQJ/BueuYtLPos/064= =wzDo -----END PGP SIGNATURE----- --Sm8MUpWLIPno7dleThf73lkhEm7qthldh-- From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 28 02:26:04 2018 Received: (at control) by debbugs.gnu.org; 28 Oct 2018 06:26:04 +0000 Received: from localhost ([127.0.0.1]:46250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGeWR-0004TY-SW for submit@debbugs.gnu.org; Sun, 28 Oct 2018 02:26:04 -0400 Received: from mail-pf1-f173.google.com ([209.85.210.173]:47006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGeWQ-0004T4-Eb for control@debbugs.gnu.org; Sun, 28 Oct 2018 02:26:02 -0400 Received: by mail-pf1-f173.google.com with SMTP id r64-v6so2439577pfb.13 for ; Sat, 27 Oct 2018 23:26:02 -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=ruLV8cxLyNGA1WAHo9+46rCil3mbbGnMd5AjMPfhB7Q=; b=VS7dgToLtxRwMj0IvIcHnzxWOrSzICNcssmU1WXZIeHa/kFSKOs3LMFYRWoKXZk3Gs 9V4b8QALfvX25uFyGgqaxGHW2ZOr/4ZyTckmu3s4UyZPvW5lyvHcUnYg3hqjrmXxxPSw 5Zrcyjnfk7odYHRIoDg+kTLjeQgntLjz7I7SDM8yu0b0gfeXIgOwi/shcKuHEHGKtZ/2 61st1F9qPAKDOgWfXsNTEyvEIENeY/8iVwgtnfey3eMr5nFrXvyAs6jFkWYKsheLoWzz 5udPdpghfuhOPkymRVmi11v2UMJ3S7vFurR9vU/+8XqbpUp3W9bi6hcAwTaEa+tP8/Zh OPzQ== 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=ruLV8cxLyNGA1WAHo9+46rCil3mbbGnMd5AjMPfhB7Q=; b=by78B2oOZdOAnm5ztZ1IcZIwqxKs0FM6yaTUzLoBEf8DbfNoZJKoDUXCXy4DocJ8hi zGlW+3Z12yhW+c7/a8iAVlJhroGZVMbHHTJHb5VngOGKXL7OIelEyNMVtGhCeFepynJ/ JKvRYlriYa2Hh3Uv7wfqUP1Iulc7tAxPtTciemVqXIOZWgo0sC9mtzm9VBmmTIHlO00A zGrmsVcjkN5nu0z0h+ZYI+JKP68V3jTj1D3uDivuIdHr2ukYctRTXdqmWgJTzy25p6A9 tVf6D1hjmWmiEVPnm8yhj8dnLHY2GNTUSJsQW8/vhtrPbnpvpE/DFQNFNyRE3/8vrvcO d89A== X-Gm-Message-State: AGRZ1gKdWGigHmxkefD64uZSzXwegpf1D2SHe3hp6mpr34p44iXeEyMo uBaECBqNvKM3O5F84bAuikK+NPNZWdk= X-Google-Smtp-Source: AJdET5dJKkTkHnz3QOW+wc/Dsv1e9+1BjmplWfGfqND/9Hp0bUOCjgC3UbogHbJTUO4sQ/FBuslkvQ== X-Received: by 2002:a63:cf4c:: with SMTP id b12-v6mr9168806pgj.418.1540707956241; Sat, 27 Oct 2018 23:25:56 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id b16-v6sm17563842pfm.145.2018.10.27.23.25.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Oct 2018 23:25:55 -0700 (PDT) To: control@debbugs.gnu.org From: Assaf Gordon Message-ID: <57253ce3-4745-d6fc-170a-096fd99f8f61@gmail.com> Date: Sun, 28 Oct 2018 00:25:53 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.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: severity 24007 wishlist tags 24007 wontfix retitle 24007 cat: append at specific line, not end of file close 24007 [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 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_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.210.173 listed in list.dnswl.org] 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 (+) severity 24007 wishlist tags 24007 wontfix retitle 24007 cat: append at specific line, not end of file close 24007 From unknown Fri Sep 05 20:55:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 25 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