Text Conversion

Arnold Andrews X-324-4292 aandrews at eng.okla.seagate.com
Wed Oct 24 07:24:07 GMT 2001


Sorry for the late response.  If you are still interested...

There is an even easier way then that.

Checkout "dos2unix" and "unix2dos".


dos2unix <dos_filename> <unix_filename>


unix2dos <unix_filename> <dos_filename>

Hope that helps,

Arnold Andrews

> Delivered-To: samba at lists.samba.org
> From: Joel Hammer <jhammer2 at home.com>
> To: John Gaughan <john7059 at home.com>, samba at lists.samba.org
> Subject: Re: Text Conversion
> Mime-Version: 1.0
> Content-Disposition: inline
> User-Agent: Mutt/1.2.5i
> X-BeenThere: samba at lists.samba.org
> X-Mailman-Version: 2.0.6
> List-Help: <mailto:samba-request at lists.samba.org?subject=help>
> List-Post: <mailto:samba at lists.samba.org>
> List-Subscribe: <http://lists.samba.org/mailman/listinfo/samba>, 
<mailto:samba-request at lists.samba.org?subject=subscribe>
> List-Id: General questions regarding Samba <samba.lists.samba.org>
> List-Unsubscribe: <http://lists.samba.org/mailman/listinfo/samba>, 
<mailto:samba-request at lists.samba.org?subject=unsubscribe>
> List-Archive: <http://lists.samba.org/pipermail/samba/>
> X-Original-Date: Sun, 14 Oct 2001 13:24:21 -0400
> Date: Sun, 14 Oct 2001 13:24:21 -0400
> Samba doesn't do this for you.
> There is software out there that gives you drag and drop conversion from
> windows to linux/unix text formatting, and some of it is free.
> But, it is so easy to do, cat file | sed 's/\x0d$//', why bother?
> To go back, cat file | sed 's/^.*$/&\x0D/'
> This takes a newer version of sed.
> Joel
> > Is there any way to get Samba to convert text files like FTP does? I 
> > searched everywhere in the online documentation for a way to specify file 
> > extensions to convert, but found nothing.
> > 
> > If I drag and drop a text file from my Windows machine to a Samba share, I 
> > would like Samba to convert the end-of-line characters to the Linux format.
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba

More information about the samba mailing list