[Linux-disciples] vim: selecting lines matching a pattern

Stephen R Laniel steve at laniels.org
Thu Dec 22 15:25:53 EST 2005


On Thu, Dec 22, 2005 at 03:22:22PM -0500, Adam Rosi-Kessel wrote:
> I always forget sed syntax, but there is a way to specify a range based on
> regexps, and then specify an operation on that range, which I believe could
> include a 'join' type operation. I'd have to muck around in the sed manpage
> for a while to get the syntax right, though.

I've basically always thought that sed and vim had identical
search-and-replace syntax, such that if it were possible in
vim it would be possible in sed.

There's probably a way to do it in Perl as well. I mean, I
could fake something involving the '..' operator ...

-- 
Stephen R. Laniel
steve at laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20051222/881c4688/attachment.pgp


More information about the Linux-disciples mailing list