Gentoo Archives: gentoo-user

From: Adam Carter <Adam.Carter@×××××××××.au>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: RE: [gentoo-user] Re: Grep question
Date: Thu, 05 Mar 2009 23:02:54
Message-Id: 5602B0BD6D59AE4791BE83104940118D7B1B3EB4@excprdmbxw002.optus.com.au
In Reply to: [gentoo-user] Re: Grep question by Harry Putnam
1 > > awk '/^foo/,/^bar/' a
2 > >
3 > > does the same :)
4 >
5 > Nice...
6
7 Thanks for all these answers. Interesingly when I moved the sed script (sed "s/;/\\n/g") from Linux to Solaris it failed as Solaris sed doesn't like putting the newline character as the "translated to" bit. Installing GNU sed on the Solaris box sorted that out.

Replies

Subject Author
Re: [gentoo-user] Re: Grep question Etaoin Shrdlu <shrdlu@×××××××××××××.org>