[ale] dumb vi question

Tim Meanor timothy at meanor.net
Mon Jul 24 13:35:38 EDT 2006


This worked for me:
:%s/),(/^M/g

where ^M was produced by pressing ctrl-v followed by enter.

-Tim

On Jul 24, 2006, at 1:20 PM, Greg Freemyer wrote:

> 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
> -- 
> Greg Freemyer
> The Norcross Group
> Forensics for the 21st Century
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale




More information about the Ale mailing list