1 |
On Sun, Nov 06, 2005 at 09:03:01PM -0800, gentuxx wrote: |
2 |
> sed -n '/^CLOCK=/s/^\(CLOCK=".*"\).*$/\1/p /etc/conf.d/clock |
3 |
> |
4 |
|
5 |
Ah, yes, I misunderstood the OP. I thought he didn't want the lines |
6 |
with trailing comments at all. |
7 |
|
8 |
But is it necessary to give the address for an s// replacement? As I |
9 |
understand it that sed is a stream editor and will try the replacement |
10 |
on every "line" it encounters. The -n flag would guarantee only the |
11 |
line changed would be printed anyway. |
12 |
|
13 |
I guess what I am saying is that |
14 |
sed -n 's/^\(CLOCK=".*"\).*$/\1/p' /etc/conf.d/clock |
15 |
would do just as fine, no? |
16 |
|
17 |
W |
18 |
-- |
19 |
The particle physicists use order parameter fields, too. Their |
20 |
order parameter fields also hide lots of details about what their |
21 |
quarks and gluons are composed of. The main difference is that |
22 |
they don't know of what their fields are composed. It ought to |
23 |
be reassuring to them that we don't always find our greater |
24 |
knowledge very helpful. |
25 |
~James P. Sethna "Order Parameters, Broken Symmetry, and Topology" |
26 |
Sortir en Pantoufles: up 4 days, 8:10 |
27 |
-- |
28 |
gentoo-user@g.o mailing list |