editing text files
Knute Johnson
ubuntu at knutejohnson.com
Wed Nov 9 02:33:43 UTC 2011
On 11/8/2011 2:38 PM, Hal Burgiss wrote:
> On Tue, Nov 8, 2011 at 5:19 PM, Noah <noah-list at enabled.com
> <mailto:noah-list at enabled.com>> wrote:
>
> Hi there,
>
> okay I am having issues correcting the ^M and line feeds of a text file.
> Let me explain. I transfered a text file that a friend sent me from
> a windows machine. Now when I 'less' the file there are no new
> lines appearing and '^M' appears where I would expect the new line
> to appear.
>
> when I emacs the file - the file appears to be formatted correctly.
> emacs claims its formatting is "Mac" and "Text" I dont see any ^M
> markings in the emacs editor and all the new lines are where I
> expect them to be.
>
> What I can do to fix this problem? Is there an option in emacs or
> is there an option from the shell?
>
>
> There is also shell commands ... dos2unix, which I think Ubuntu has as
> fromdos that will rewrite the files. I don't recall offhand what package
> these are in.
> --
> Hal
>
>
I just loaded it, it is in it's own package.
--
Knute Johnson
More information about the ubuntu-users
mailing list