[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] dumb vi question
- Subject: [ale] dumb vi question
- From: timothy at meanor.net (Tim Meanor)
- Date: Mon, 24 Jul 2006 13:35:38 -0400
- In-reply-to: <[email protected]>
- References: <[email protected]>
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