Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-17-2004, 10:17 AM
|
#1
|
LQ Newbie
Registered: Nov 2003
Distribution: Suse 9.0
Posts: 20
Rep:
|
Carriage Returns
Ok here is the mess I have.
I have text file that I create in my SuSE box.
I open it on a windows machine and there are no carriage returns.
what I create in SuSE is:
row 1 data
row 2 data
row 3 data
what I get in windows is
row 1 datarow 2 datarow 3 data
I am using kwrite to create the file.
How can I get kwrite to either use the windows format of CrLf and not the Linux format
or just convert it to a windows format
TIA
Thorkyl
|
|
|
06-17-2004, 10:41 AM
|
#2
|
Member
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323
Rep:
|
Try wordpad instead of notepad in windoze?
Or install the unix2dos and dos2unix conversion programs
Most unix editor will have an option to save in the dos CRLF format, don't know about kwrite though.
|
|
|
06-17-2004, 11:33 AM
|
#3
|
LQ Newbie
Registered: Nov 2003
Distribution: Suse 9.0
Posts: 20
Original Poster
Rep:
|
Ok will investigate your sugestion this evening.
You mentioned other editors.
What ones would you recomend other than kwrite and vi (need to leard it but fighting the urge).
I actually use TextPad in windows and wold love to use somthing like in my suse box.
Thorkyl
|
|
|
06-17-2004, 12:38 PM
|
#4
|
Member
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323
Rep:
|
Well, everyone pretty much has his/her fave editor they get kind of attached to over time... Personally I use nano, it is capable of saving to dos format... But it's an editor for in the shell -- so non-gui. Anyway I'm not really "up to speed" on the existing choise of editors since i'm quite content with nano. But surely there must be dozens available. Maybe try www.linux.org they have a large list of linux apps sorted by category
Anyone else reading this know of editors capable of saving CRLF?
|
|
|
06-18-2004, 10:17 PM
|
#5
|
LQ Addict
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320
Rep:
|
For reading Unix/Mac text files on Windows I've always relied on UltraEdit, since it automatically converts to DOS format.
|
|
|
06-28-2004, 04:53 PM
|
#6
|
LQ Newbie
Registered: Nov 2003
Distribution: Suse 9.0
Posts: 20
Original Poster
Rep:
|
Well what I wound up doing was parsing the files with VB and converting them that way
as it turned out I had over 3,000 files to convert.
I was originally told it 1 file with 3 million rows
However I am interested to hear other input on this.
I kinda like kwrite on suse and TextPad in Winbloz
Thorkyl
|
|
|
06-28-2004, 05:13 PM
|
#7
|
Member
Registered: Feb 2003
Posts: 51
Rep:
|
in kwrite, under tools-> end of line you can set what type of end of line specification to use... use the second DOS/windows.
|
|
|
06-28-2004, 05:42 PM
|
#8
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,305
Rep:
|
unix2dos and dos2unix. they used to be standard.
sed would work well also. i forget how sed wants you to specify newline, but it would be similar to this
sed s/"\012"/"\012\015"/g < unixtext > dostext
that's not right, but it's close.
|
|
|
All times are GMT -5. The time now is 06:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|