[lug] File conversion question
David Morris
lists at morris-clan.net
Thu Nov 18 17:55:38 MST 2004
On Thu, Nov 18, 2004 at 05:32:17PM -0700, Jeff Schroeder wrote:
> Paul asked:
>
> > I have come into the posession of a large number of text files
> > that have a ^M where there should be a \n character. What is the
> > 'well known' trick for conversion to UNIX-tradition format using
> > POSIX commands?
>
> I thought there was a command "dos2unix" or something, but I can't find
> it. A while back I wrote myself a little bash script that does exactly
> this...
'dos2unix' and 'unix2dos' are usually not installed by
default on Linux machines. On Debian you need to install
the sysutils package, not certain what it is on other
distributions (might be the same).
--David
More information about the LUG
mailing list