On Tue, 13 Feb 2001, Peter Skipworth wrote:

> 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

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

Reply via email to