[ale] dumb vi question

Richard Kolkovich sarumont at sigil.org
Mon Jul 24 13:31:25 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/24/06 13:20, Greg Freemyer declared:
> All,
> 
> I'm apparently getting rusty on my vi.
> 
> I have a mysql dump file that I want to look at closer by hand.
> 
> Currently the rows are seperated by ),(
> 
> I want to replace those with newlines.  I'm willing to do it from vi,
> or the commandline.
> 
>>From vi I would think it would be something like :s/),(/$/
> 
> I assume I need to escape some of that, so I tried
> :s/\),\(/$/
> 
> but I'm getting an error about unmatched \)
> 
> Can someone give me the syntax?
> 
> Thanks, Greg

Try:

:%s/),(/\r/g

- --

Richard Kolkovich
sarumont at sigil.org


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFExQPtKTYpNZ5U71kRAipBAKCHZb70vG4y6OdGgx6pX88dRE2juACfVkDQ
UWG8rEMuw76FnFvg7U0kBTk=
=5jVx
-----END PGP SIGNATURE-----



More information about the Ale mailing list