> > Or a handy one-liner...
> >
> > perl -pi -e "s/[\012\015]//" *.sql
> >
> >
>
> Or alternatively edit the file with vi and do:
> :s///
>
> This inteprets to the following keystrokes:
> ':' colon
> 's' s for substitute
> '' Ctrl-v-m to create the annoying ^M as one character
> '//' two slashes
>
Xmmm, seems the listd didn't like my '^M' :-( My mistake.
REPEAT:
In vi you type:
:s/^M//
This inteprets to the following keystrokes:
':' colon
's' s for substitute
'^M' Ctrl-v-m to create the annoying ^M as one character (the CR)
'//' two slashes
regards,
thalis
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php