Re: slug Digest, Vol 103, Issue 8

James Linder <[email protected]> Fri, 29 Aug 2014 10:14:20 +0800
Newsgroups gmane.org.user-groups.slug.general
Message-ID <[email protected]>
On 29 Aug 2014, at 10:00 am, [email protected] wrote:

> Many thanks to those who replied to my enquiry on dos2unix.
> 
> Reason for the enquiry: I have a .txt file that I wish to edit using Elvis.
> 
> However, line endings when one saves a dos file to txt are inconsistent .I
> was told dos2unix would fix this. I'm using the latest Ubuntu. Even so,
> dos2unix will have to be installed separately.
> 
> Final question: dos2unix will fix up the line endings. Is there anything
> else it fixes?

The whole unix philosophy (perl notwithstanding) is to do ONE job and do it well. Make or use another tool to do another job.

I guess not relevant to William, who is talking about elvis, but vim (when)aka vi does dos2unix, unix2dos conversions on a file. RFM as I recall set mode dos, set mode unix
James

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html