LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 10-06-2010, 12:32 AM   #1
ciden
Member
 
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
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
http://tinyurl.com/32uyoyk

The first hit does the trick


Cheers,
Tink

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

Rep: Reputation: 45
Code:
unix2dos *.txt
 
  


Reply


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


All times are GMT -5. The time now is 07:41 PM.

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