[ale] dumb vi question
Greg Freemyer
greg.freemyer at gmail.com
Mon Jul 24 13:38:40 EDT 2006
Thanks to both,
It was the g on the end that I had totally spaced.
Greg
On 7/24/06, Tim Meanor <timothy at meanor.net> wrote:
> 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
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>
--
Greg Freemyer
The Norcross Group
Forensics for the 21st Century
More information about the Ale
mailing list