|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
"^M" appearing after each line
hey i exported some mysql tables to tab delimited text files and at the end of each line the characters ^M appeared...i was editing it with nano (pico clone) if this makes a difference, but when i specify the 'lines terminated with' value for mysqlimport, it messes up because these characters are there....and i cant use the search feature because it comes up with nothing so i figure its some ascii or something???
thanks for all help, kevin |
|
#2
|
||||
|
||||
|
it seems that nano has saved the files in binary format, not text. You will need to open it up in nano and then make sure that its saved properly as text.
|
|
#3
|
||||
|
||||
|
Usually when you have windows line endings, \r\n, and look at them in a *nix editor, you'll see the ^M for the \r. Saving the files in *nix format with just \n will get rid of the ^M.
---John Holmes... |
|
#4
|
||||
|
||||
|
My mistake, posting w/o really paying attention
![]() |
|
#5
|
||||
|
||||
|
all this deleting of posts makes stuff hard to read more often than not
|
|
#6
|
||||
|
||||
|
I know, but I didn't want to leave the reminder of my dumbness
![]() (yeah yeah, thats not a word ) |
|
#7
|
||||
|
||||
|
hehe, all good, just seeing references to things said past that don't exist anymore confuses poor me
![]() |
![]() |
| Viewing: Dev Shed Forums > Other > Dev Shed Lounge > "^M" appearing after each line |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|