From: | Etaoin Shrdlu <shrdlu@×××××××××××××.org> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] OT: sed on the commandline | ||
Date: | Sat, 12 Feb 2011 13:07:26 | ||
Message-Id: | 201102121216.p1CCG5OP030888@dcnode-02.unlimitedmail.net | ||
In Reply to: | [gentoo-user] OT: sed on the commandline by meino.cramer@gmx.de |
1 | On Sat, 12 Feb 2011 12:25:20 +0100 meino.cramer@×××.de wrote: |
2 | |
3 | > Hi, |
4 | > |
5 | > I am trying to instruct sed to insert a line of text before |
6 | > a matched line. The whole command should fit into one |
7 | > physical (command) line. |
8 | > |
9 | > Is it possible? And how is it possible? |
10 | |
11 | sed 's/matchingline/insertedline\n&/' |