From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 14 12:07:04 2017 Received: (at submit) by debbugs.gnu.org; 14 Feb 2017 17:07:04 +0000 Received: from localhost ([127.0.0.1]:40024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdgZC-0001JB-Rc for submit@debbugs.gnu.org; Tue, 14 Feb 2017 12:07:04 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43539) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdaAi-00058J-Vm for submit@debbugs.gnu.org; Tue, 14 Feb 2017 05:17:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cdaAa-0006AU-GK for submit@debbugs.gnu.org; Tue, 14 Feb 2017 05:17:15 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: *** X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,RECEIVED_FROM_WINDOWS_HOST,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38172) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cdaAa-0006AO-CL for submit@debbugs.gnu.org; Tue, 14 Feb 2017 05:17:12 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdaAX-0004gB-15 for bug-sed@gnu.org; Tue, 14 Feb 2017 05:17:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cdaAS-00065O-Sa for bug-sed@gnu.org; Tue, 14 Feb 2017 05:17:08 -0500 Received: from bay004-omc3s21.hotmail.com ([65.54.190.159]:49519) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cdaAS-0005zj-1g for bug-sed@gnu.org; Tue, 14 Feb 2017 05:17:04 -0500 Received: from EUR02-AM5-obe.outbound.protection.outlook.com ([65.54.190.188]) by BAY004-OMC3S21.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Tue, 14 Feb 2017 02:17:00 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=DFOSRtYwE/NINk7LYBi+8nMo+07FswKKhB/ooV6n02k=; b=hBAU0KkY5Y1fPwB0i+ZYhx2eqFQfj7C+FHv5GDE5yslp9LcXfXA5Wy3Uh5OXTCvJfoO9+K8/X0Xv5OyD6H37ibqH9gGBBA1Xb8eOcQo0tjBPYmp5aYbs4lcHbxH7xaTXfSY2opu8z7Y3IRzHMEfnADlAAue7Z3XEke7e7X81vZHdnH6RieCulPCRtIl3axYKk8T3P68+c8a6svJeIGhJln915TQkvhpJ6jweKl6GWN0JgWslhOcXNYKKgQsZflkMft554tRNjlhgzbpb4nvINh5mK9V4+z99Kzt2rDYiTFwRn6N4xqM8w73dWboFUTgg4BRAxMe6bACqNLBRJXMymQ== Received: from AM5EUR02FT042.eop-EUR02.prod.protection.outlook.com (10.152.8.52) by AM5EUR02HT102.eop-EUR02.prod.protection.outlook.com (10.152.9.59) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.904.16; Tue, 14 Feb 2017 10:16:37 +0000 Received: from DB6PR0802MB2520.eurprd08.prod.outlook.com (10.152.8.54) by AM5EUR02FT042.mail.protection.outlook.com (10.152.9.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.904.16 via Frontend Transport; Tue, 14 Feb 2017 10:16:37 +0000 Received: from DB6PR0802MB2520.eurprd08.prod.outlook.com ([10.172.251.142]) by DB6PR0802MB2520.eurprd08.prod.outlook.com ([10.172.251.142]) with mapi id 15.01.0888.030; Tue, 14 Feb 2017 10:16:37 +0000 From: =?Windows-1252?Q?Enrico_Magr=EC?= To: "bug-sed@gnu.org" Subject: sed (bug or wrong command ?) Thread-Topic: sed (bug or wrong command ?) Thread-Index: AQHShqttLcAOtJPrzky/DCJf/GNLiA== Date: Tue, 14 Feb 2017 10:16:37 +0000 Message-ID: References: , <20170213201235006202825@bob.proulx.com>, In-Reply-To: Accept-Language: it-IT, en-US Content-Language: it-IT X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gnu.org; dkim=none (message not signed) header.d=none;gnu.org; dmarc=none action=none header.from=hotmail.com; x-incomingtopheadermarker: OriginalChecksum:DC3ABF56B3D815AE0F65CB4965A58916766D544C3E98494154EE4F8992AD8F47; UpperCasedChecksum:537A571E69538329F88203D74F8BE02A6595C064077BD5DFA06A08D677F49AF6; SizeAsReceived:7956; Count:39 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [BYlAYrNDLjKSaBkuG+1kY6A2SQEXIICS7W/X7x0N21E=] x-incomingheadercount: 39 x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1; AM5EUR02HT102; 5:j5C8DNj2nD+1QCab1VuwCTDDf1gh97frA79zGxXNG1oa9/JbUe2LTtDrKm6hSoTXkD4skiXFIG7w+OXdaTz7MZ4TjNRJ5ixTTxMiIHFsTWWWFryyEJFjYNeNPFyVrQb/BxZEjKyBIOer/RcerN9GqA==; 24:QZ4hKNalyWAEj2g2hvdrWZhtAOAviJA2y4yMuFnGTIT8bfHBCW828CigugqkgGkUvXEYygOfHo3B0X/qReIwv7QbxxmWcG8szAAfH10ypSw=; 7:Z6OvbVOFXVEBJBboGbKiZHlHFwMvvm2vy60nu7vY0WQsPxMCOhluWGrh617FE/tGEV6jlmQyh0XukxjF+TZVI3srZBth/C+l2yYdhbGnjL6gaj6iTwQWpe1dGzuQXeu7eTL4ilwMmvXi1oe5Jhdnx2TKXRMsNbf/Uo5A1BZn6gr8VInb14uv26z0sNSclIWxkWc8qjyRalW6EXh5tofseuDkmzZnItX3ml/fnTmdOj91avOmuEJyephx6yrpQg23dwg/XopmKM5SoKoFN8TOd2bxZ/kcJKVk9rKTW3boB6BFnNPtyX7Xe1CCM64DpWp5dezA8tmcE3HfwbWFs1118CofUVRzQEeMYth/CCUsNGu+Zk9WNae++wKOCeLmeQM+FOCA+YddOm1E7S/QZ1nEEYNWn+bYybsTEhyelEwK2WRYfmNLdwf95YX1sDlA9LlOv3ClmepdKBQqjFoa+MjhCoocmGVVNfT1a3f/7Kmfp/gv1AbXff1/P5QEH76Pv21MVBH4c0AkTqIDO1ed2vZTNg== x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900008); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5EUR02HT102; H:DB6PR0802MB2520.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: 8787a479-9bb8-47c3-fc82-08d454c28fca x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(5061506506)(5061507331)(1603103135)(1601125187)(1701031045); SRVR:AM5EUR02HT102; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(432015086)(82015046); SRVR:AM5EUR02HT102; BCL:0; PCL:0; RULEID:; SRVR:AM5EUR02HT102; x-forefront-prvs: 0218A015FA spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_DB6PR0802MB25209E10889AB6B1C31A406AFC580DB6PR0802MB2520_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Feb 2017 10:16:37.6844 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR02HT102 X-OriginalArrivalTime: 14 Feb 2017 10:17:00.0327 (UTC) FILETIME=[7AB35B70:01D286AB] X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 14 Feb 2017 12:07:00 -0500 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: -4.0 (----) --_000_DB6PR0802MB25209E10889AB6B1C31A406AFC580DB6PR0802MB2520_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi, I would like to insert new line at the begin of my txt file and in this lin= e to insert the word =93ciao=94. The file is this: C:\config>cat comandi-capture.txt capture CAP-IP-85.205.221.241 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.241 capture CAP-IP-85.205.221.240 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.240 capture CAP-IP-85.205.94.250 type raw-data interface OUTSIDE circular-buffe= r match ip any host 85.205.94.250 capture CAP-IP-85.205.207.116 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.207.116 capture CAP-IP-85.205.221.220 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.220 capture CAP-IP-85.205.221.218 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.218 capture CAP-IP-85.205.207.99 type raw-data interface OUTSIDE circular-buffe= r match ip any host 85.205.207.99 capture CAP-IP-85.205.217.252 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.217.252 capture CAP-IP-85.205.221.245 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.245 capture CAP-IP-85.205.207.46 type raw-data interface OUTSIDE circular-buffe= r match ip any host 85.205.207.46 capture CAP-IP-85.205.221.239 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.239 capture CAP-IP-85.205.221.232 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.232 capture CAP-IP-85.205.94.238 type raw-data interface OUTSIDE circular-buffe= r match ip any host 85.205.94.238 capture CAP-IP-85.205.221.237 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.237 capture CAP-IP-85.205.207.113 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.207.113 capture CAP-IP-85.205.217.232 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.217.232 capture CAP-IP-85.205.217.240 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.217.240 capture CAP-IP-85.205.217.241 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.217.241 capture CAP-IP-85.205.219.160 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.219.160 capture CAP-IP-85.205.221.213 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.213 capture CAP-IP-85.205.221.231 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.231 capture CAP-IP-85.205.221.234 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.234 capture CAP-IP-85.205.221.243 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.243 capture CAP-IP-85.205.221.248 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.248 capture CAP-IP-85.205.221.250 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.250 show capture I type this command: sed "1,1s/^/ciao \n /g" comandi-capture.txt the output is: C:\config>sed "1,1s/^/ciao \n /g" comandi-capture.txt ciao n capture CAP-IP-85.205.221.241 type raw-data interface OUTSIDE circul= ar-buffer match ip any host 85.205.221.241 capture CAP-IP-85.205.221.240 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.240 capture CAP-IP-85.205.94.250 type raw-data interface OUTSIDE circular-buffe= r match ip any host 85.205.94.250 capture CAP-IP-85.205.207.116 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.207.116 capture CAP-IP-85.205.221.220 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.220 capture CAP-IP-85.205.221.218 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.218 capture CAP-IP-85.205.207.99 type raw-data interface OUTSIDE circular-buffe= r match ip any host 85.205.207.99 capture CAP-IP-85.205.217.252 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.217.252 capture CAP-IP-85.205.221.245 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.245 capture CAP-IP-85.205.207.46 type raw-data interface OUTSIDE circular-buffe= r match ip any host 85.205.207.46 capture CAP-IP-85.205.221.239 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.239 capture CAP-IP-85.205.221.232 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.232 capture CAP-IP-85.205.94.238 type raw-data interface OUTSIDE circular-buffe= r match ip any host 85.205.94.238 capture CAP-IP-85.205.221.237 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.237 capture CAP-IP-85.205.207.113 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.207.113 capture CAP-IP-85.205.217.232 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.217.232 capture CAP-IP-85.205.217.240 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.217.240 capture CAP-IP-85.205.217.241 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.217.241 capture CAP-IP-85.205.219.160 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.219.160 capture CAP-IP-85.205.221.213 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.213 capture CAP-IP-85.205.221.231 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.231 capture CAP-IP-85.205.221.234 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.234 capture CAP-IP-85.205.221.243 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.243 capture CAP-IP-85.205.221.248 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.248 capture CAP-IP-85.205.221.250 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.250 show capture I would like see the word =93ciao=94 and then in a new line the rest of th= e file. It seems that \n is not work or I type the wrong command :) The version of sed is the following: C:\Users\enrico_vf>sed --version GNU sed version 3.02 Copyright (C) 1998 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, to the extent permitted by law. I tried also with SED of CYGWIN and all woks correctly: LIT002604+enrico@LIT002604 ~/test $ sed "1,1s/^/ciao\n/g" comandi-capture.txt ciao capture CAP-IP-85.205.221.241 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.241 capture CAP-IP-85.205.221.240 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.240 capture CAP-IP-85.205.94.250 type raw-data interface OUTSIDE circular-buffe= r match ip any host 85.205.94.250 capture CAP-IP-85.205.207.116 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.207.116 capture CAP-IP-85.205.221.220 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.220 capture CAP-IP-85.205.221.218 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.218 capture CAP-IP-85.205.207.99 type raw-data interface OUTSIDE circular-buffe= r match ip any host 85.205.207.99 capture CAP-IP-85.205.217.252 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.217.252 capture CAP-IP-85.205.221.245 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.245 capture CAP-IP-85.205.207.46 type raw-data interface OUTSIDE circular-buffe= r match ip any host 85.205.207.46 capture CAP-IP-85.205.221.239 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.239 capture CAP-IP-85.205.221.232 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.232 capture CAP-IP-85.205.94.238 type raw-data interface OUTSIDE circular-buffe= r match ip any host 85.205.94.238 capture CAP-IP-85.205.221.237 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.237 capture CAP-IP-85.205.207.113 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.207.113 capture CAP-IP-85.205.217.232 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.217.232 capture CAP-IP-85.205.217.240 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.217.240 capture CAP-IP-85.205.217.241 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.217.241 capture CAP-IP-85.205.219.160 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.219.160 capture CAP-IP-85.205.221.213 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.213 capture CAP-IP-85.205.221.231 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.231 capture CAP-IP-85.205.221.234 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.234 capture CAP-IP-85.205.221.243 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.243 capture CAP-IP-85.205.221.248 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.248 capture CAP-IP-85.205.221.250 type raw-data interface OUTSIDE circular-buff= er match ip any host 85.205.221.250 show capture LIT002604+enrico@LIT002604 ~/test Thanks in advance for your help Enrico --_000_DB6PR0802MB25209E10889AB6B1C31A406AFC580DB6PR0802MB2520_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Hi,

I would like to insert new line at the begin of my= txt file and in this line to insert the word =93ciao=94.=

 


The file is this:

C:\config>cat comandi-capture.txt

capture CAP-IP-85.205.221.241 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.241

capture CAP-IP-85.205.221.240 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.240

capture CAP-IP-85.205.94.250 type raw-data interfa= ce OUTSIDE circular-buffer match ip any host 85.205.94.250

capture CAP-IP-85.205.207.116 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.207.116

capture CAP-IP-85.205.221.220 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.220

capture CAP-IP-85.205.221.218 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.218

capture CAP-IP-85.205.207.99 type raw-data interfa= ce OUTSIDE circular-buffer match ip any host 85.205.207.99

capture CAP-IP-85.205.217.252 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.217.252

capture CAP-IP-85.205.221.245 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.245

capture CAP-IP-85.205.207.46 type raw-data interfa= ce OUTSIDE circular-buffer match ip any host 85.205.207.46

capture CAP-IP-85.205.221.239 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.239

capture CAP-IP-85.205.221.232 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.232

capture CAP-IP-85.205.94.238 type raw-data interfa= ce OUTSIDE circular-buffer match ip any host 85.205.94.238

capture CAP-IP-85.205.221.237 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.237

capture CAP-IP-85.205.207.113 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.207.113

capture CAP-IP-85.205.217.232 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.217.232

capture CAP-IP-85.205.217.240 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.217.240

capture CAP-IP-85.205.217.241 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.217.241

capture CAP-IP-85.205.219.160 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.219.160

capture CAP-IP-85.205.221.213 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.213

capture CAP-IP-85.205.221.231 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.231

capture CAP-IP-85.205.221.234 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.234

capture CAP-IP-85.205.221.243 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.243

capture CAP-IP-85.205.221.248 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.248

capture CAP-IP-85.205.221.250 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.250

show capture

 

I type this command:

sed "1,1s/^/ciao \n /g" comandi-capture.= txt

 

the output is:

C:\config>sed "1,1s/^/ciao \n /g" com= andi-capture.txt

ciao n capture CAP-IP-85.205.221.241 type raw-data= interface OUTSIDE circular-buffer match ip any host 85.205.221.241

capture CAP-IP-85.205.221.240 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.240

capture CAP-IP-85.205.94.250 type raw-data interfa= ce OUTSIDE circular-buffer match ip any host 85.205.94.250

capture CAP-IP-85.205.207.116 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.207.116

capture CAP-IP-85.205.221.220 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.220

capture CAP-IP-85.205.221.218 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.218

capture CAP-IP-85.205.207.99 type raw-data interfa= ce OUTSIDE circular-buffer match ip any host 85.205.207.99

capture CAP-IP-85.205.217.252 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.217.252

capture CAP-IP-85.205.221.245 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.245

capture CAP-IP-85.205.207.46 type raw-data interfa= ce OUTSIDE circular-buffer match ip any host 85.205.207.46

capture CAP-IP-85.205.221.239 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.239

capture CAP-IP-85.205.221.232 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.232

capture CAP-IP-85.205.94.238 type raw-data interfa= ce OUTSIDE circular-buffer match ip any host 85.205.94.238

capture CAP-IP-85.205.221.237 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.237

capture CAP-IP-85.205.207.113 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.207.113

capture CAP-IP-85.205.217.232 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.217.232

capture CAP-IP-85.205.217.240 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.217.240

capture CAP-IP-85.205.217.241 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.217.241

capture CAP-IP-85.205.219.160 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.219.160

capture CAP-IP-85.205.221.213 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.213

capture CAP-IP-85.205.221.231 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.231

capture CAP-IP-85.205.221.234 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.234

capture CAP-IP-85.205.221.243 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.243

capture CAP-IP-85.205.221.248 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.248

capture CAP-IP-85.205.221.250 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.250

show capture

 

I would like see the word =93ciao=94 and then &nbs= p;in a new line the rest of the file. It seems that \n is not work or = I type the wrong command J

 

The version of sed is = the following:

 

C:\Users\enrico_vf>sed -= -version

GNU sed version 3.02

 

Copyright (C) 1998 Free Sof= tware Foundation, Inc.

This is free software; see = the source for copying conditions.  There is NO

warranty; not even for MERC= HANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,

to the extent permitted by = law.

 


I tried also with SED of CYGWIN and all woks corre= ctly:

 

LIT002604+enrico@LIT002604 ~/test

$ sed "1,1s/^/ciao\n/g" comandi-capture.= txt

ciao

capture CAP-IP-85.205.221.241 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.241

capture CAP-IP-85.205.221.240 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.240

capture CAP-IP-85.205.94.250 type raw-data interfa= ce OUTSIDE circular-buffer match ip any host 85.205.94.250

capture CAP-IP-85.205.207.116 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.207.116

capture CAP-IP-85.205.221.220 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.220

capture CAP-IP-85.205.221.218 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.218

capture CAP-IP-85.205.207.99 type raw-data interfa= ce OUTSIDE circular-buffer match ip any host 85.205.207.99

capture CAP-IP-85.205.217.252 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.217.252

capture CAP-IP-85.205.221.245 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.245

capture CAP-IP-85.205.207.46 type raw-data interfa= ce OUTSIDE circular-buffer match ip any host 85.205.207.46

capture CAP-IP-85.205.221.239 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.239

capture CAP-IP-85.205.221.232 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.232

capture CAP-IP-85.205.94.238 type raw-data interfa= ce OUTSIDE circular-buffer match ip any host 85.205.94.238

capture CAP-IP-85.205.221.237 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.237

capture CAP-IP-85.205.207.113 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.207.113

capture CAP-IP-85.205.217.232 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.217.232

capture CAP-IP-85.205.217.240 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.217.240

capture CAP-IP-85.205.217.241 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.217.241

capture CAP-IP-85.205.219.160 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.219.160

capture CAP-IP-85.205.221.213 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.213

capture CAP-IP-85.205.221.231 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.231

capture CAP-IP-85.205.221.234 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.234

capture CAP-IP-85.205.221.243 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.243

capture CAP-IP-85.205.221.248 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.248

capture CAP-IP-85.205.221.250 type raw-data interf= ace OUTSIDE circular-buffer match ip any host 85.205.221.250

show capture

 

LIT002604+enrico@LIT002604 ~/test



 

Thanks in advance for your help<= /p>

 

Enrico

 



--_000_DB6PR0802MB25209E10889AB6B1C31A406AFC580DB6PR0802MB2520_-- From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 15 10:43:29 2017 Received: (at 25724) by debbugs.gnu.org; 15 Feb 2017 15:43:30 +0000 Received: from localhost ([127.0.0.1]:41196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ce1jt-00063V-OA for submit@debbugs.gnu.org; Wed, 15 Feb 2017 10:43:29 -0500 Received: from mail-qt0-f175.google.com ([209.85.216.175]:34345) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ce1jr-00063G-JQ; Wed, 15 Feb 2017 10:43:28 -0500 Received: by mail-qt0-f175.google.com with SMTP id w20so139658259qtb.1; Wed, 15 Feb 2017 07:43:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=2M/0ZNXfHXYbaH8GeayxtUfXgkzDCR/GHmJS1m4IhXc=; b=GVe9QpkEmKDLLgTHJ3+tRQdSNKf/CFdqyewkQhSzJANGsBieYOdxqTMMX+GH57gmto YEfIDOaJKBCHA53TnrZ3WnPPdv9xGBN5upaqx6J/zTjhKqi97Gx+BBPMZos2pLo9wy9E M2zR/aqDz5lP7JRYVo7GcrsPB7FfMoyEdOhC4tkBx6HkdQSzIF8FjZK+y4zmWbmgNP1D i+BEMP2aikU/D9AK4hRucPcVD+GBTpayK1OA9oeCKtgiqLec653e/f+Ymfw6+1B1jMoW um2D9waSaHyga8K6JGMRda3OVq8hmv3/3HVftMFCU/q98ycG3GmtbKVP7jPS1VB0xVCI M7sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=2M/0ZNXfHXYbaH8GeayxtUfXgkzDCR/GHmJS1m4IhXc=; b=fEtYp5/fh4PUimZ039eY4g8EV3pqrexlKO6dXGKgwJH4qgwaonPXMJVZmk5ucRmbvF 0bZ/obfOOzu16PdgZngeLAp/tUs6L0Y7TTjvqe8wwz4IyFCR93yVw0m0G+qek+FMbyK9 sGVr9QNgpdtWQaY9PjmG9vNwyYzyplqe6rjXUvYgQUThB94lmmvD4TkZCx7sAtcV72LM /UInjoiQBn+ti8+d46CmMwp3N5LJCcqkoiA4VR/SwieDvHyROx7WaMNal7/n3ou44A/o /QkliykY6ErCcKWrQehQRYTmUlD3j9SOJgcWi1/P/K/eXHn8MEK8wATVkJYjTYcr7uqm gFsg== X-Gm-Message-State: AMke39kBg3i9D3LmYTChl+fT2+/A2TNKTj3XceRFP8mn908LdKiXIBtFHbF6Ts4k49jOQQ== X-Received: by 10.200.43.212 with SMTP id n20mr31964137qtn.117.1487173401873; Wed, 15 Feb 2017 07:43:21 -0800 (PST) Received: from gmail.com (housegordon.org. [104.236.108.240]) by smtp.gmail.com with ESMTPSA id d15sm2518916qtg.22.2017.02.15.07.43.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Feb 2017 07:43:21 -0800 (PST) Date: Wed, 15 Feb 2017 15:42:51 +0000 From: Assaf Gordon To: Enrico =?iso-8859-1?Q?Magr=EC?= Subject: Re: bug#25724: sed (bug or wrong command ?) Message-ID: <20170215154250.GA29230@gmail.com> References: <20170213201235006202825@bob.proulx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 25724 Cc: 25724@debbugs.gnu.org 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: -0.2 (/) tag 25724 notabug close 25724 stop Hello, On Tue, Feb 14, 2017 at 10:16:37AM +0000, Enrico Magrì wrote: >I would like to insert new line at the begin of my txt file and in this line to insert the word “ciao”. > [...] >C:\config>sed "1,1s/^/ciao \n /g" comandi-capture.txt > >ciao n capture CAP-IP-85.205.221.241 type raw-data interface OUTSIDE circular-buffer match ip any host 85.205.221.241 [...] > >I tried also with SED of CYGWIN and all woks correctly: > >$ sed "1,1s/^/ciao\n/g" comandi-capture.txt > >ciao > >capture CAP-IP-85.205.221.241 type raw-data interface OUTSIDE circular-buffer match ip any host 85.205.221.241 [...] >The version of sed is the following: > >C:\Users\enrico_vf>sed --version >GNU sed version 3.02 First, sed version 3.02 is 19 years old. (!) It is highly recommended to upgrade to a newer version. sed version 4.4 was released just this month. I'm quite certain that the 'sed' you use on cygwin is newer than the 'sed' you use directly in cmd.exe. Second, Instead of replacing the beginning of the line, consider using the 'i' (insert') command. The following should work even on sed-3.02: sed -e '1i\' -e 'ciao' comandi-capture.txt To learn more about this syntax, see the 'i' command in this section: https://www.gnu.org/software/sed/manual/sed.html#Other-Commands As such I'm closing this ticket, but discussion can continue by replying to this thread. regards, - assaf From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 16 17:52:27 2017 Received: (at 25724) by debbugs.gnu.org; 16 Feb 2017 22:52:27 +0000 Received: from localhost ([127.0.0.1]:42765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceUuY-0004Ke-It for submit@debbugs.gnu.org; Thu, 16 Feb 2017 17:52:26 -0500 Received: from bay004-omc2s24.hotmail.com ([65.54.190.99]:58135) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceUgV-000400-P6 for 25724@debbugs.gnu.org; Thu, 16 Feb 2017 17:37:56 -0500 Received: from EUR01-DB5-obe.outbound.protection.outlook.com ([65.54.190.125]) by BAY004-OMC2S24.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Thu, 16 Feb 2017 14:37:49 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=oUi34US78XhNeM08Qni/imQtFbDWa7x7H8D1c6hvS+Q=; b=PPjnW+BnkgZSFkvaLLFp9ttR0zxeLCAPDpBLGzhWit9ZLw1/AzYVGH1SA4X6P2a8EY1lL/rdbbL8gNXUTm5HhwjTeqSH1W8/tgZD6x35RKQy+fQdCeiXDQEfLimWVfM9yJr2/l3Brh8Z8bZfcUMZTqsSrs2u9/GmXVlVEnkcrl8pARGDWN6VDv//r3jNPt3JbySd3ZqNAjCNU7j86HWsVFqevLLzqoh8NJ1CuR1cCrvrdwBBnPEf1Vtbigta5NZq+F8r0nXZPhaRXSmhATuk4uHURfo5DrF5RHNpUJImLrQ0n6q97D8JjUS/2e3vPXDOuhjE4LbpmHBdOsoZzO1yAw== Received: from DB5EUR01FT007.eop-EUR01.prod.protection.outlook.com (10.152.4.59) by DB5EUR01HT023.eop-EUR01.prod.protection.outlook.com (10.152.5.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.904.16; Thu, 16 Feb 2017 22:37:47 +0000 Received: from DB6PR0802MB2520.eurprd08.prod.outlook.com (10.152.4.60) by DB5EUR01FT007.mail.protection.outlook.com (10.152.4.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.904.16 via Frontend Transport; Thu, 16 Feb 2017 22:37:47 +0000 Received: from DB6PR0802MB2520.eurprd08.prod.outlook.com ([10.172.251.142]) by DB6PR0802MB2520.eurprd08.prod.outlook.com ([10.172.251.142]) with mapi id 15.01.0888.030; Thu, 16 Feb 2017 22:37:47 +0000 From: =?utf-8?B?RW5yaWNvIE1hZ3LDrA==?= To: Assaf Gordon Subject: R: bug#25724: sed (bug or wrong command ?) Thread-Topic: bug#25724: sed (bug or wrong command ?) Thread-Index: AQHShqttLcAOtJPrzky/DCJf/GNLiKFqNv2AgAIE1pA= Date: Thu, 16 Feb 2017 22:37:47 +0000 Message-ID: References: <20170213201235006202825@bob.proulx.com> <20170215154250.GA29230@gmail.com> In-Reply-To: <20170215154250.GA29230@gmail.com> Accept-Language: it-IT, en-US Content-Language: it-IT X-MS-Has-Attach: X-MS-TNEF-Correlator: x-slblob-mailprops: CaK+F7me6CkLt4i1FpsnA685G+FKdjSdBDgSzmrl7FoFcEa3RlNNZkVFGxfuJ4Ink54svlaa+Av8mvMNzzCzB07XN4UGMu03+MEJEhcvwOTwP3aUDMF8fC0oh4X5bm2qsb/RDl7tq9i0JR1RpFJLqZWGkA8qe2bFRlzFbiwKnrPckgstfD6GgJJdslqDsi4RfgPbMZe97Tj+QTXLaed17qlB+rhs9AFH98RSrkyu0cuSPJEGjV7+P9tH0yZC8wp0mJyPsZnesonbYqyYEa0Cva8E/l4JXgBC+zyXbrhR9hQ0bNVVjaytIH9FLHfE8ul2NJIwxz4KClZ0QoqWW4Qv7OtSKgl9Y6m2WiJ5/7/Y2pioV5+8nNU77M6d/sEGUvsqlnwjZAVmXy1LE5f8y9XQe1u6d1QczQjoZpTZrkqLG/hFOK9RlCcQUI0OV1XXGZlJZTnVgpYcVI9YH+CljiGgSKFDqWLKwK28wIKNh6C81D9ty9WK4UHSxnU3OiQeDblRZ/tkAOP+cHU4pX8XfVNRKxCGIRVB0WLDu7x5o3NItQIHPg6JnbP8/TIzVWbWSNQRi6DQjVWzSx1+YRaMWeqPBFv16jwY8AtPddFOtAhdPzpf7KC5KXEZtZ+kfK9nuoOSE3sSVW2jlDYf+D7QgyqOizfUIyNssBMDwNRyuSI1kSM+1lbMmusUHEdmij4PxWeCZ85Y9lWl9/MgSl9FXAlrfyeF6j5DS/snm5EvEjbq4XfHnbTLdFK0nA== authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=hotmail.com; x-incomingtopheadermarker: OriginalChecksum:18372BD0F8195E302248DFAADFC614882494856433EBAA60037CB89907914D37; UpperCasedChecksum:876EAB5C4DA3E3C9B1EE4CD437AB14CA0D5021EFB0AA35A2E1A3968DD2D780D1; SizeAsReceived:8924; Count:40 x-tmn: [KkMbnA/gaH/mIclJZ1RjWLbB9gVipdJo] x-incomingheadercount: 40 x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1; DB5EUR01HT023; 7:bGx0sH+UdM/eJToye+POGUIfqAbJfI18LY4IwKlkdN4vfbXknDw/ImqELfJXVumwGI7qMAwor8PnlRhVU09dT0AlI3XXxj+42edn2n13imtdIi/J2ZagezCRGSKfX5lJ9Ul5xH2hVqF1W559JS/j0hmIOrn7E8VAb4PkLdKaAZk0Z04S+3DwXBGSujf1slvwZmITeNeAKNyycSBtHw/zler7Xz/bU4iTuA8U+99LseaCq1e/URGY4dKnHxZOibFrXegGaXxJw2mALFLCtwL01BbkuprX1kpTjws/rswBXyex+ynvunV4a9xdw4or0XstLMphLDSvYP/gY+6L2X5a1g== x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900011); DIR:OUT; SFP:1102; SCL:1; SRVR:DB5EUR01HT023; H:DB6PR0802MB2520.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: 6c1d148f-b6e7-41e8-61d0-08d456bc6ebc x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(5061506426)(5061507331)(1603103135)(1601125107)(1701031045); SRVR:DB5EUR01HT023; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(432015087)(444000031); SRVR:DB5EUR01HT023; BCL:0; PCL:0; RULEID:; SRVR:DB5EUR01HT023; x-forefront-prvs: 0220D4B98D spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Feb 2017 22:37:47.5860 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT023 X-OriginalArrivalTime: 16 Feb 2017 22:37:49.0957 (UTC) FILETIME=[4D922350:01D288A5] X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 25724 X-Mailman-Approved-At: Thu, 16 Feb 2017 17:52:26 -0500 Cc: =?utf-8?B?RW5yaWNvIE1hZ3LDrA==?= , "25724@debbugs.gnu.org" <25724@debbugs.gnu.org> 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: -4.0 (----) SGkgR29yZG9uLA0KdGhhbmtzIGZvciB0aGUgaW5mb3JtYXRpb247IG9rIEknbGwgdHJ5IGluIHRo aXMgd2F5LiBEbyB5b3Uga25vdyB0aGUgaHR0cCBsaW5rIHdoZXJlIEkgY2FuIGRvd25sb2FkIHRo ZSB1cGRhdGVkIHNlZC5leGUgZm9yIHdpbmRvd3MgPw0KQ3VycmVudGx5IEkgZm91bmRlZCBvbmx5 IHRoaXMgbGluayBmb3Igd2luZG93cyBPUzogaHR0cDovL3VueHV0aWxzLnNvdXJjZWZvcmdlLm5l dC8NCmJ1dCBJIGJlbGlldmUgdGhhdCBpdCdzIG5vdCB0aGUgdXBkYXRlZCBwYWNrYWdlLg0KDQpC ZXN0IFJlZ2FyZHMsDQpFbnJpY28NCg0KDQotLS0tLU1lc3NhZ2dpbyBvcmlnaW5hbGUtLS0tLQ0K RGE6IEFzc2FmIEdvcmRvbiBbbWFpbHRvOmFzc2FmZ29yZG9uQGdtYWlsLmNvbV0gDQpJbnZpYXRv OiBtZXJjb2xlZMOsIDE1IGZlYmJyYWlvIDIwMTcgMTY6NDMNCkE6IEVucmljbyBNYWdyw6wNCkNj OiAyNTcyNEBkZWJidWdzLmdudS5vcmcNCk9nZ2V0dG86IFJlOiBidWcjMjU3MjQ6IHNlZCAoYnVn IG9yIHdyb25nIGNvbW1hbmQgPykNCg0KdGFnIDI1NzI0IG5vdGFidWcNCmNsb3NlIDI1NzI0DQpz dG9wDQoNCkhlbGxvLA0KDQpPbiBUdWUsIEZlYiAxNCwgMjAxNyBhdCAxMDoxNjozN0FNICswMDAw LCBFbnJpY28gTWFncsOsIHdyb3RlOg0KPkkgd291bGQgbGlrZSB0byBpbnNlcnQgbmV3IGxpbmUg YXQgdGhlIGJlZ2luIG9mIG15IHR4dCBmaWxlIGFuZCBpbiB0aGlzIGxpbmUgdG8gaW5zZXJ0IHRo ZSB3b3JkIOKAnGNpYW/igJ0uDQo+DQpbLi4uXQ0KPkM6XGNvbmZpZz5zZWQgIjEsMXMvXi9jaWFv IFxuIC9nIiBjb21hbmRpLWNhcHR1cmUudHh0DQo+DQo+Y2lhbyBuIGNhcHR1cmUgQ0FQLUlQLTg1 LjIwNS4yMjEuMjQxIHR5cGUgcmF3LWRhdGEgaW50ZXJmYWNlIE9VVFNJREUgDQo+Y2lyY3VsYXIt YnVmZmVyIG1hdGNoIGlwIGFueSBob3N0IDg1LjIwNS4yMjEuMjQxDQoNClsuLi5dDQo+DQo+SSB0 cmllZCBhbHNvIHdpdGggU0VEIG9mIENZR1dJTiBhbmQgYWxsIHdva3MgY29ycmVjdGx5Og0KPg0K PiQgc2VkICIxLDFzL14vY2lhb1xuL2ciIGNvbWFuZGktY2FwdHVyZS50eHQNCj4NCj5jaWFvDQo+ DQo+Y2FwdHVyZSBDQVAtSVAtODUuMjA1LjIyMS4yNDEgdHlwZSByYXctZGF0YSBpbnRlcmZhY2Ug T1VUU0lERSANCj5jaXJjdWxhci1idWZmZXIgbWF0Y2ggaXAgYW55IGhvc3QgODUuMjA1LjIyMS4y NDENCg0KDQpbLi4uXQ0KDQo+VGhlIHZlcnNpb24gb2Ygc2VkIGlzIHRoZSBmb2xsb3dpbmc6DQo+ DQo+QzpcVXNlcnNcZW5yaWNvX3ZmPnNlZCAtLXZlcnNpb24NCj5HTlUgc2VkIHZlcnNpb24gMy4w Mg0KDQoNCkZpcnN0LA0Kc2VkIHZlcnNpb24gMy4wMiBpcyAxOSB5ZWFycyBvbGQuICghKQ0KSXQg aXMgaGlnaGx5IHJlY29tbWVuZGVkIHRvIHVwZ3JhZGUgdG8gYSBuZXdlciB2ZXJzaW9uLg0Kc2Vk IHZlcnNpb24gNC40IHdhcyByZWxlYXNlZCBqdXN0IHRoaXMgbW9udGguDQoNCkknbSBxdWl0ZSBj ZXJ0YWluIHRoYXQgdGhlICdzZWQnIHlvdSB1c2Ugb24gY3lnd2luIGlzIG5ld2VyIHRoYW4gdGhl ICdzZWQnIHlvdSB1c2UgZGlyZWN0bHkgaW4gY21kLmV4ZS4NCg0KDQpTZWNvbmQsDQpJbnN0ZWFk IG9mIHJlcGxhY2luZyB0aGUgYmVnaW5uaW5nIG9mIHRoZSBsaW5lLCBjb25zaWRlciB1c2luZyB0 aGUgJ2knIChpbnNlcnQnKSBjb21tYW5kLg0KVGhlIGZvbGxvd2luZyBzaG91bGQgd29yayBldmVu IG9uIHNlZC0zLjAyOg0KDQogICBzZWQgLWUgJzFpXCcgLWUgJ2NpYW8nIGNvbWFuZGktY2FwdHVy ZS50eHQNCg0KVG8gbGVhcm4gbW9yZSBhYm91dCB0aGlzIHN5bnRheCwgc2VlIHRoZSAnaScgY29t bWFuZCBpbiB0aGlzIHNlY3Rpb246DQpodHRwczovL3d3dy5nbnUub3JnL3NvZnR3YXJlL3NlZC9t YW51YWwvc2VkLmh0bWwjT3RoZXItQ29tbWFuZHMNCg0KDQoNCg0KQXMgc3VjaCBJJ20gY2xvc2lu ZyB0aGlzIHRpY2tldCwgYnV0IGRpc2N1c3Npb24gY2FuIGNvbnRpbnVlIGJ5IHJlcGx5aW5nIHRv IHRoaXMgdGhyZWFkLg0KDQpyZWdhcmRzLA0KIC0gYXNzYWYNCg0K From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 16 17:57:57 2017 Received: (at 25724) by debbugs.gnu.org; 16 Feb 2017 22:57:57 +0000 Received: from localhost ([127.0.0.1]:42781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceUzs-0004T1-TL for submit@debbugs.gnu.org; Thu, 16 Feb 2017 17:57:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceUzr-0004Sl-83 for 25724@debbugs.gnu.org; Thu, 16 Feb 2017 17:57:55 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (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 6FB93C0567A1; Thu, 16 Feb 2017 22:57:50 +0000 (UTC) Received: from [10.10.123.249] (ovpn-123-249.rdu2.redhat.com [10.10.123.249] (may be forged)) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v1GMvnMX014762; Thu, 16 Feb 2017 17:57:49 -0500 Subject: Re: bug#25724: R: bug#25724: sed (bug or wrong command ?) To: =?UTF-8?Q?Enrico_Magr=c3=ac?= , Assaf Gordon References: <20170213201235006202825@bob.proulx.com> <20170215154250.GA29230@gmail.com> From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Organization: Red Hat, Inc. Message-ID: <169a6770-27a1-1e6a-4631-adb53d91687e@redhat.com> Date: Thu, 16 Feb 2017 16:57:48 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0kg4fID3OHSUK4PFvUG45WW1tQQlOeqOs" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Thu, 16 Feb 2017 22:57:50 +0000 (UTC) X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25724 Cc: "25724@debbugs.gnu.org" <25724@debbugs.gnu.org> 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: -5.0 (-----) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --0kg4fID3OHSUK4PFvUG45WW1tQQlOeqOs Content-Type: multipart/mixed; boundary="5NSGBf95QX3TEqN0781eJ0dW43ABkdtep"; protected-headers="v1" From: Eric Blake To: =?UTF-8?Q?Enrico_Magr=c3=ac?= , Assaf Gordon Cc: "25724@debbugs.gnu.org" <25724@debbugs.gnu.org> Message-ID: <169a6770-27a1-1e6a-4631-adb53d91687e@redhat.com> Subject: Re: bug#25724: R: bug#25724: sed (bug or wrong command ?) References: <20170213201235006202825@bob.proulx.com> <20170215154250.GA29230@gmail.com> In-Reply-To: --5NSGBf95QX3TEqN0781eJ0dW43ABkdtep Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable [top-posting is frowned on within technical lists] On 02/16/2017 04:37 PM, Enrico Magr=C3=AC wrote: > Hi Gordon, > thanks for the information; ok I'll try in this way. Do you know the ht= tp link where I can download the updated sed.exe for windows ? > Currently I founded only this link for windows OS: http://unxutils.sour= ceforge.net/ > but I believe that it's not the updated package. The cygwin project [https://cygwin.com] has an up-to-date sed 4.4 available for windows [https://cygwin.com/ml/cygwin-announce/2017-02/msg00020.html] and a maintainer that's more responsive than the unxutils folks (seeing as how that maintainer is me, and I read this list :) --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --5NSGBf95QX3TEqN0781eJ0dW43ABkdtep-- --0kg4fID3OHSUK4PFvUG45WW1tQQlOeqOs 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/ iQEcBAEBCAAGBQJYpi5sAAoJEKeha0olJ0NqD+0H/Asf65iPIw/ykq1kZHqyDVXo rGYrDJzBOtCAlAWsku3/rvtx0PtmrGQCC13k7mRzn5CNNtZOZSdizy+ylSR2dpZ1 BDKj4Oo0BT2K7m2wZ7CHWFG/HdKy0+/86Md/6QmH5tPQfxMbhDzXDCzosTr6xxSn RdwbNlzJwwSMQszfldcnWwKrC9xkujuiPlPpACfwIdF9Qj8r0++pLSp9v9n5BJl+ rroJHVkzTgZ/oYlL65+C8Tql/7lo3ZDwvPrn95XyCiXNJq5NkjSmeHlbQplTNbSC b6ghfrp+YhN7bp05QC4nELjlNbVcrPms7Er/37fpARqIxbScK4Rp/wcFB3UvqCU= =F+Sj -----END PGP SIGNATURE----- --0kg4fID3OHSUK4PFvUG45WW1tQQlOeqOs-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 16 21:20:36 2017 Received: (at 25724) by debbugs.gnu.org; 17 Feb 2017 02:20:36 +0000 Received: from localhost ([127.0.0.1]:42875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceYA0-0005tl-99 for submit@debbugs.gnu.org; Thu, 16 Feb 2017 21:20:36 -0500 Received: from mail-qt0-f169.google.com ([209.85.216.169]:36750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceY9y-0005tX-DQ for 25724@debbugs.gnu.org; Thu, 16 Feb 2017 21:20:34 -0500 Received: by mail-qt0-f169.google.com with SMTP id k15so30558500qtg.3 for <25724@debbugs.gnu.org>; Thu, 16 Feb 2017 18:20:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=UGPGdda3EYjYxfyh/kT+bpl0v9GUU6/TkRTRxc1udyc=; b=C6LJbv5Oqp67uKLYiG2KQH2tD0pRM5VezBk/Hp6fKrHLTh58XLk1Kx2xqQCfXvtZKX lXiqBLVAhewMv8GNwkNBjqzyKm/ev9R9T93dsKvQ1BDsBlYIF9SGpwNFOKkReJ9xkQ7k rC9HXRtsmEow+gyIU0OAU/x/3xd8tuxP605ndDrL3PJw/CIJZu4lnWT4b77SvFo07xEu 1i1V2PZ58ZVd5XLfPFZF4UL7lqbZV3sTmqmSzCEuiG7OEk4nJUySigsNtqG7PctkVj9a DWG8lvgfyV7/LsQJUptQ0IQ/yky/8hl912HN6r4M12NcwljKCyFOEaGht46sl84K98w1 RXTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=UGPGdda3EYjYxfyh/kT+bpl0v9GUU6/TkRTRxc1udyc=; b=XHkB9aIIr4aUbKgFD9TWyIKKBX30Si4YyWhQQL/gZdHJqpLHl8KkBxgfr3PkmPG32F DCZPLhb0aY4vkTpIzc2vXyePRj67k1ZtxM7cNM7x31RS5dZFkDAiYRvTcvcmjEjSwymf yOHd6Tg84Xz3jpGaWX0W9BnsNUjKoG46tfMjrArDINCXILzH1EfNoxJu6gpQlUNuHaym 0XKUOybxOEBoEPwD7PPfbEEB87bPjQGjbcOTtxigG7VCr4SdXJA7HKBnpCTTPqJgnISM +vIid9JObMHBsc+Wv5DPo3yDl256IDOEuUE9c2HFxroYUa5y8EAt1obZrA6m/Z5M6ziR xlqQ== X-Gm-Message-State: AMke39m5v1t0uKShUzjOlUWCeHwJ+Gh9aUFd/nFeDzrviJ5wcgLg75rkgijos/684OuOyw== X-Received: by 10.200.50.121 with SMTP id y54mr542075qta.174.1487298028902; Thu, 16 Feb 2017 18:20:28 -0800 (PST) Received: from ix.home (pool-100-37-92-116.nycmny.fios.verizon.net. [100.37.92.116]) by smtp.gmail.com with ESMTPSA id m12sm5598963qtm.45.2017.02.16.18.20.27 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Feb 2017 18:20:28 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Subject: Re: bug#25724: R: bug#25724: sed (bug or wrong command ?) From: Assaf Gordon In-Reply-To: <169a6770-27a1-1e6a-4631-adb53d91687e@redhat.com> Date: Thu, 16 Feb 2017 21:20:27 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20170213201235006202825@bob.proulx.com> <20170215154250.GA29230@gmail.com> <169a6770-27a1-1e6a-4631-adb53d91687e@redhat.com> To: =?utf-8?Q?Enrico_Magr=C3=AC?= X-Mailer: Apple Mail (2.2102) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 25724 Cc: "25724@debbugs.gnu.org" <25724@debbugs.gnu.org> 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: -0.0 (/) Hello, > On Feb 16, 2017, at 17:57, Eric Blake wrote: >=20 > On 02/16/2017 04:37 PM, Enrico Magr=C3=AC wrote: >> Do you know the http link where I can download the updated sed.exe = for windows ? >=20 > The cygwin project [https://cygwin.com] has an up-to-date sed 4.4 > available for windows Cygwin is the best source for gnu programs on windows (and non-gnu = programs, too). It is highly recommended to use cygwin. If you absolutely can not use cygwin, you'll find here links for sed versions compiled for windows: https://lists.gnu.org/archive/html/bug-sed/2017-01/msg00076.html but please be aware these are unofficial, unsupported versions. regards, - assaf= From unknown Mon Aug 18 14:22:48 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, 17 Mar 2017 11: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