Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Replacing string '\n' in a textfile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Off the Wall
View previous topic :: View next topic  
Author Message
bastibasti
Guru
Guru


Joined: 27 Nov 2006
Posts: 496

PostPosted: Tue Dec 04, 2012 8:09 am    Post subject: Replacing string '\n' in a textfile Reply with quote

I have a textfile which is exported from a mysql database

Newlines are stored as '\n'

how can I change the \n as string against a real newline?
Back to top
View user's profile Send private message
bastibasti
Guru
Guru


Joined: 27 Nov 2006
Posts: 496

PostPosted: Tue Dec 04, 2012 8:13 am    Post subject: Reply with quote

Got it,

i have to replace \\n stupid me
Back to top
View user's profile Send private message
aidanjt
Veteran
Veteran


Joined: 20 Feb 2005
Posts: 1101
Location: Rep. of Ireland

PostPosted: Tue Dec 04, 2012 8:16 am    Post subject: Re: Replacing string '\n' in a textfile Reply with quote

bastibasti wrote:
I have a textfile which is exported from a mysql database

Newlines are stored as '\n'

how can I change the \n as string against a real newline?

\n is the real newline. If you want to read it on Windows, use a text editor which doesn't blow chunks, maybe Notepad++ or ConTEXT.
_________________
juniper wrote:
you experience political reality dilation when travelling at american political speeds. it's in einstein's formulas. it's not their fault.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Off the Wall All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum