Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-06-2010, 12:32 AM   #1
Registered: Dec 2006
Location: New Delhi, India
Distribution: PCLinuxOS 2010
Posts: 246
Blog Entries: 1

Rep: Reputation: 31
Question Automatically saving text files in DOS format

I usually work with plain text files, and when moving them across platforms, the differing format creates problems.

I want that whenever I save a file with extension *.txt, it be saved as DOS format, and all other extensions or without get saved as Unix format.

Is this possible?

I use emacs or kwrite for editing mostly.
Old 10-06-2010, 12:47 AM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910

The first hit does the trick


Last edited by Tinkster; 10-06-2010 at 12:49 AM.
Old 10-06-2010, 12:48 AM   #3
Registered: Apr 2010
Posts: 228

Rep: Reputation: 46
unix2dos *.txt


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
In DOS fdisk, format, sys, copy files, edit autoexec - In linux? by hand? pentalive Linux - General 19 10-16-2013 09:53 AM
Convert DOS text files to UNIX text files ta0kira Linux - Software 7 03-15-2011 12:42 PM
[SOLVED] Automatically Generate Text Files seashell11 Linux - Software 11 09-18-2010 08:41 PM
How do I convert text files between Windows(Dos) and Linux? gagraf Linux - Newbie 9 01-27-2010 06:26 AM
Format Problems Saving Star Office Docs in Word Format kkempter Linux - Software 4 08-27-2003 05:23 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration