[gentoo-user] OT: sed on the commandline

2011-02-12 Thread meino . cramer
Hi, I am trying to instruct sed to insert a line of text before a matched line. The whole command should fit into one physical (command) line. Is it possible? And how is it possible? Thank you very much for any hint in advance! Best regards, mcc

Re: [gentoo-user] OT: sed on the commandline

2011-02-12 Thread Alan McKinnon
Apparently, though unproven, at 13:25 on Saturday 12 February 2011, meino.cra...@gmx.de did opine thusly: Hi, I am trying to instruct sed to insert a line of text before a matched line. The whole command should fit into one physical (command) line. Is it possible? And how is it

Re: [gentoo-user] OT: sed on the commandline

2011-02-12 Thread dhk
On 02/12/2011 06:25 AM, meino.cra...@gmx.de wrote: Hi, I am trying to instruct sed to insert a line of text before a matched line. The whole command should fit into one physical (command) line. Is it possible? And how is it possible? Thank you very much for any hint in

Re: [gentoo-user] OT: sed on the commandline

2011-02-12 Thread Etaoin Shrdlu
On Sat, 12 Feb 2011 12:25:20 +0100 meino.cra...@gmx.de wrote: Hi, I am trying to instruct sed to insert a line of text before a matched line. The whole command should fit into one physical (command) line. Is it possible? And how is it possible? sed 's/matchingline/insertedline\n/'

Re: [gentoo-user] OT: sed on the commandline

2011-02-12 Thread meino . cramer
Alan McKinnon alan.mckin...@gmail.com [11-02-12 13:44]: Apparently, though unproven, at 13:25 on Saturday 12 February 2011, meino.cra...@gmx.de did opine thusly: Hi, I am trying to instruct sed to insert a line of text before a matched line. The whole command should fit into one

Re: [gentoo-user] OT: sed on the commandline

2011-02-12 Thread Etaoin Shrdlu
On Sat, 12 Feb 2011 14:11:20 +0100 meino.cra...@gmx.de wrote: Alan McKinnon alan.mckin...@gmail.com [11-02-12 13:44]: Apparently, though unproven, at 13:25 on Saturday 12 February 2011, meino.cra...@gmx.de did opine thusly: Hi, I am trying to instruct sed to insert a line of

Re: [gentoo-user] OT: sed on the commandline

2011-02-12 Thread meino . cramer
Etaoin Shrdlu shr...@unlimitedmail.org [11-02-12 14:36]: On Sat, 12 Feb 2011 14:11:20 +0100 meino.cra...@gmx.de wrote: Alan McKinnon alan.mckin...@gmail.com [11-02-12 13:44]: Apparently, though unproven, at 13:25 on Saturday 12 February 2011, meino.cra...@gmx.de did opine thusly: