GNU bug report logs - #53756
Just feature request

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: sed; Severity: wishlist; Reported by: Tathastu Pandya <ptathastu@HIDDEN>; dated Thu, 3 Feb 2022 18:40:01 UTC; Maintainer for sed is bug-sed@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Feb 2022 18:39:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 03 13:39:05 2022
Received: from localhost ([127.0.0.1]:57753 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nFh0a-0008WD-JO
	for submit <at> debbugs.gnu.org; Thu, 03 Feb 2022 13:39:05 -0500
Received: from lists.gnu.org ([209.51.188.17]:59384)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ptathastu@HIDDEN>) id 1nFgl7-00085U-8D
 for submit <at> debbugs.gnu.org; Thu, 03 Feb 2022 13:23:08 -0500
Received: from eggs.gnu.org ([209.51.188.92]:40268)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ptathastu@HIDDEN>)
 id 1nFgl7-0007T5-2B
 for bug-sed@HIDDEN; Thu, 03 Feb 2022 13:23:05 -0500
Received: from sonic309-47.consmr.mail.sg3.yahoo.com ([106.10.244.110]:46000)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <ptathastu@HIDDEN>)
 id 1nFgl4-00054w-47
 for bug-sed@HIDDEN; Thu, 03 Feb 2022 13:23:04 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1643912575; bh=yrzXyQuNP5t3TpeO1W2PlxqLTh15BSwM+a7otm2MDAM=;
 h=Date:From:Reply-To:To:Subject:References:From:Subject:Reply-To;
 b=RvnR1ERCR8Rx9BeE2bzEpz1Bfpo20P0/qwSPEAzhXGdRv0vdtWmsMUApJbH/VcX9ujzG47m5uTgCCmY/h9oEmGrMyrvaY37MQd4Eaq3woglBNsqUfpfp4GI6FFssVz/bTsl2SKkz5nwxbRx6/NMRlGpGozmUlYaDLwkyMhoFpuIV4JyG9OSSHogyw2pXejeUvEc/DhcTuBc3wxZECVLRqYy0a0Hx5ruxRAJ2EoZ5y5PR8nyD6o/A1LdxwsUHWqzx4/AlHpvsq+CiNZJZR55wzycTPwM/vHhifGbkhbmNTYqi5YFRnpts64ki+VX+0xqxAxiyNj3mfR4B/Jl3MfdbMg==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1643912575; bh=mXgHXkdo0t7Z3BWxbu6vVfG4OQf4w+eTugMN2Cjoaw9=;
 h=X-Sonic-MF:Date:From:To:Subject:From:Subject;
 b=t8oY8yXP8jL/P0RzevsiHo8D7nuGPQ8WpZ5/2+fieLpvn/zJzHc3+xZ6jAajrimgZTAWXIvg5Avxei5i38RBtwPp0clsPS7OFt/JYkiMkorjkU/mKYNIuW0XrMhPLrJzp49SaxDeGJNAGFDaR0fsKFHUusfmMRrPpJbW7Pyu3/TbLE7AWAuucLTy9MekjLWAzWTF8nPeKAMnbqXIlShxYOWwT5A6dLDGRUg7Rdj49TkcAHaGgT4zM1b25NfhayT9MUa6f5oy/iroLCqX+QCoKPtuGmqXepNaz0QsfBL4KsCK7TjpbOKK+ZCcOJi4JWP5oYl7Mm/HkrKSK2iMo/PDdw==
X-YMail-OSG: Op5Iq6MVM1lYI3H_ICGh0fPpaIQrm5yWeCOIyw4nW733_JetSOsaikbtT45HUcJ
 BX6tRm61VqkIdynXvl56dAgqYnO5RF1PTQ8xiZdWlk4MN_z9lS1IS6mhuGuE313LOcvFgveZS9ic
 vJ8Nrj2b8TxCBpdWVJVBv5unq4fu_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toaY8N7mxXcbpJWYXfiUKdoF8UB3RRxMfP3f0bebdU1I4kTAzHgHcRly_F79BaQ0L0EUsJDsX
 XuEww1tAGLsRGwV1mpRL61MLK2mHfclNumwnWJhrV6o_p1qZcJj1P5tNFQ95snSkV.54ZbplRqxn
 1Ku7_YcG95g3L0HxfZfb_jWnh.1dBczqB2whRsuTFD.uRpOiWcBCY0lRJr8rSYyda6NaEdCzAgWp
 mGMUkWHgWktJ83j77T44zk1_pfNR09eSTM4i6gPlKBA03ken_Uj3UrqtuqjAeiFuKbnZ3nJjY8vI
 HJL0VJ8zhF.Ghv7vIVXYzvn6cehkQzYTYRPtOfhxk1jIpSq0jnBNdf6PgPa5PcxNpvmF1uETcjwE
 Xy970IMhacBiyx6rfIsy7LNM-
X-Sonic-MF: <ptathastu@HIDDEN>
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic309.consmr.mail.sg3.yahoo.com with HTTP; Thu, 3 Feb 2022 18:22:55 +0000
Date: Thu, 3 Feb 2022 18:20:48 +0000 (UTC)
From: Tathastu Pandya <ptathastu@HIDDEN>
To: "bug-sed@HIDDEN" <bug-sed@HIDDEN>
Message-ID: <160361315.3673930.1643912448213@HIDDEN>
Subject: Just  feature request
MIME-Version: 1.0
Content-Type: multipart/alternative; 
 boundary="----=_Part_3673929_2053830578.1643912448212"
References: <160361315.3673930.1643912448213.ref@HIDDEN>
X-Mailer: WebService/1.1.19615 YahooMailAndroidMobile
Content-Length: 3524
Received-SPF: pass client-ip=106.10.244.110; envelope-from=ptathastu@HIDDEN;
 helo=sonic309-47.consmr.mail.sg3.yahoo.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.6 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 03 Feb 2022 13:39:03 -0500
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>
Reply-To: Tathastu Pandya <ptathastu@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.6 (-)

------=_Part_3673929_2053830578.1643912448212
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Just as awk has FILENAME NR FNR like variables=C2=A0Add same feature in sed=
.Now sed has "F" for filename "=3D" for line numberBut flaw in sed is that =
those F and =3D directky ouyput to stdout.
Using debug i found above
Rather if F and =3D result can be made a part of pattern space we can perfo=
rm many one liners wuthout mulyiple piped commands.Eg.
I want 4th line of file prepended with filenzme
currently we have to sed '4F' | some more sed command to process to merge F=
ilename line to 4th line.

But if F and =3D output can be made availabk in pattern space.eg 1F would a=
dd Filename\n1st line in partten space.
or=C2=A0
sed '4s/^/$F/'
Juat like awk built in variable we canuse F and =3D options

Sent from Yahoo Mail on Android
------=_Part_3673929_2053830578.1643912448212
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Just as awk has FILENAME NR FNR like variables&nbsp;<div id=3D"yMail_cursor=
ElementTracker_1643912130076">Add same feature in sed.</div><div id=3D"yMai=
l_cursorElementTracker_1643912145507">Now sed has "F" for filename "=3D" fo=
r line number</div><div id=3D"yMail_cursorElementTracker_1643912163260">But=
 flaw in sed is that those F and =3D directky ouyput to stdout.</div><div i=
d=3D"yMail_cursorElementTracker_1643912193533"><br></div><div id=3D"yMail_c=
ursorElementTracker_1643912337905">Using debug i found above</div><div id=
=3D"yMail_cursorElementTracker_1643912340711"><br></div><div id=3D"yMail_cu=
rsorElementTracker_1643912193697">Rather if F and =3D result can be made a =
part of pattern space we can perform many one liners wuthout mulyiple piped=
 commands.</div><div id=3D"yMail_cursorElementTracker_1643912246913">Eg.</d=
iv><div id=3D"yMail_cursorElementTracker_1643912252791"><br></div><div id=
=3D"yMail_cursorElementTracker_1643912252933">I want 4th line of file prepe=
nded with filenzme</div><div id=3D"yMail_cursorElementTracker_1643912287083=
"><br></div><div id=3D"yMail_cursorElementTracker_1643912287997">currently =
we have to sed '4F' | some more sed command to process to merge Filename li=
ne to 4th line.</div><div id=3D"yMail_cursorElementTracker_1643912328460"><=
br></div><div id=3D"yMail_cursorElementTracker_1643912328609"><br></div><di=
v id=3D"yMail_cursorElementTracker_1643912329194">But if F and =3D output c=
an be made availabk in pattern space.</div><div id=3D"yMail_cursorElementTr=
acker_1643912364112">eg 1F would add Filename\n1st line in partten space.</=
div><div id=3D"yMail_cursorElementTracker_1643912392767"><br></div><div id=
=3D"yMail_cursorElementTracker_1643912393228">or&nbsp;</div><div id=3D"yMai=
l_cursorElementTracker_1643912395434"><br></div><div id=3D"yMail_cursorElem=
entTracker_1643912395765">sed '4s/^/$F/'</div><div id=3D"yMail_cursorElemen=
tTracker_1643912408272"><br></div><div id=3D"yMail_cursorElementTracker_164=
3912408422">Juat like awk built in variable we canuse F and =3D options<br =
id=3D"yMail_cursorElementTracker_1643912117172"><br><div id=3D"ymail_androi=
d_signature"><a id=3D"ymail_android_signature_link" href=3D"https://go.onel=
ink.me/107872968?pid=3DInProduct&amp;c=3DGlobal_Internal_YGrowth_AndroidEma=
ilSig__AndroidUsers&amp;af_wl=3Dym&amp;af_sub1=3DInternal&amp;af_sub2=3DGlo=
bal_YGrowth&amp;af_sub3=3DEmailSignature">Sent from Yahoo Mail on Android</=
a></div></div>
------=_Part_3673929_2053830578.1643912448212--




Acknowledgement sent to Tathastu Pandya <ptathastu@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-sed@HIDDEN. Full text available.
Report forwarded to bug-sed@HIDDEN:
bug#53756; Package sed. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 3 Feb 2022 18:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.