Re: Files: Debian-to-dos.
On Thu, 26 Aug 1999 [EMAIL PROTECTED] wrote: Is there a way to save a linux-file to a dos-diskette in a dos-readable way? (Say I wanted to show you guys a config-file or something when I'm mailing from an NT-box, not wanting to type the whole thing, or I wanted to take a file from f. x. StarOffice with me to work...) Please don't flame a pitiful 'nix newbie. I'm really trying to learn, and I already love the efficiency of linux compared to my horrible WinNT box at work (breaks down several times a day...) Regards Vitux Vitux, A one-line solution with no special programs required would be : sed 's/$/control-v followed by control-m/' filename output_file This would convert from Unix format to DOS format. The reverse operation would be acomplished by : sed 's/control-v followed by control-m$//' filename output_file (The '$' is literally present in both cases) Regards, Jor-el He who is intoxicated with wine will be sober again in the course of the night, but he who is intoxicated by the cupbearer will not recover his senses until the day of judgement. -- Saadi
Re: Files: Debian-to-dos.
Some people have given a few solutions already. The best is probably to use mtools. Mtools is a collection of tools for using dos filesystems: mdir, mcopy, mdel, mdeltree, mformat, mmd, mmove (any more??). ie they all have the same name as their dos counterpart, but with an 'm' on the front. [EMAIL PROTECTED] wrote: Is there a way to save a linux-file to a dos-diskette in a dos-readable way? (Say I wanted to show you guys a config-file or something when I'm mailing from an NT-box, not wanting to type the whole thing, or I wanted to take a file from f. x. StarOffice with me to work...) Please don't flame a pitiful 'nix newbie. I'm really trying to learn, and I already love the efficiency of linux compared to my horrible WinNT box at work (breaks down several times a day...) Regards Vitux Error is human; complete disaster takes a computer -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: Files: Debian-to-dos.
On 26 Aug 1999, Kenneth Scharf wrote: Is there a way to save a linux-file to a dos-diskette in a dos-readable way? (Say I wanted to show you guys a config-file or something when I'm mailing from an NT-box, not wanting to type the whole thing, or I wanted to take a file from f. x. StarOffice with me to work...) Please don't flame a pitiful 'nix newbie. I'm really trying to learn, and I already love the efficiency of linux compared to my horrible WinNT box at work (breaks down several times a day...) Regards Vitux I think all you have to do is to mount the floppy and copy the files to it. IE: mount /dev/fd0 /mnt -t vfat will mount the floppy on /mnt using the dos/windows file system. There is also the issue of crlf to lfcr translation. If there is a problem with that I think there is a utility available to do this. === If you have the mtools package installed you don't need to mount the floppy. Just do: mcopy foo.txt a: Anthony -- Anthony Campbell - running Linux Debian 2.1 (Windows-free zone) Book Reviews: http://www.achc.demon.co.uk/bookreviews/ The Moving Finger writes; and, having writ, Moves on... - Edward Fitzgerald (Rubaiat of Omar Khayyam)
Files: Debian-to-dos.
Is there a way to save a linux-file to a dos-diskette in a dos-readable way? (Say I wanted to show you guys a config-file or something when I'm mailing from an NT-box, not wanting to type the whole thing, or I wanted to take a file from f. x. StarOffice with me to work...) Please don't flame a pitiful 'nix newbie. I'm really trying to learn, and I already love the efficiency of linux compared to my horrible WinNT box at work (breaks down several times a day...) Regards Vitux Error is human; complete disaster takes a computer
Re: Files: Debian-to-dos.
On Thu, Aug 26, 1999 at 03:30:43PM +0200, [EMAIL PROTECTED] wrote: Is there a way to save a linux-file to a dos-diskette in a dos-readable way? (Say I wanted to show you guys a config-file or something when I'm mailing from an NT-box, not wanting to type the whole thing, or I wanted to take a file from f. x. StarOffice with me to work...) Please don't flame a pitiful 'nix newbie. I'm really trying to learn, and I already love the efficiency of linux compared to my horrible WinNT box at work (breaks down several times a day...) Regards Vitux unix2dos file That converts the line feeds properly.
Files: debian to dos
| Is there a way to save a linux-file to a dos-diskette in a | dos-readable way? You can use the mtools package. It provides a set of commands that lets you read, write and manipulate files on an MSDOS system. Its most typical use is to transfer files between a linux system and a diskette. Specifically: say you have a DOS-formatted diskette in the floppy drive of your linux box, then you can: mdir a: (list the files on the diskette) mcopy FOO a:BAR (copy the linux file FOO to the floppy and name it BAR) mcopy a:FOO BAR (copy the file FOO from the floppy to the linux system and name it BAR) mdel a:FOO(delete the file FOO on the floppy) The mtools package is probably on your system already. If not, you can find it in the `otherosfs' section of the debian archive, Jim
Re: Files: Debian-to-dos.
On Thu, 26 Aug 1999 [EMAIL PROTECTED] wrote: Is there a way to save a linux-file to a dos-diskette in a dos-readable way? [snip] Vitux: Use mtools: mcopy -t filename a: will put the file on the floppy with cr-lf fixed for dos. --David David Teague, [EMAIL PROTECTED] Debian GNU/Linux Because software support is free, timely, useful, technically accurate, and friendly. (I'm hoping this is all of the above!)
Re: Files: Debian-to-dos.
Vitux, You can use unix2dos, in the sysutils pacakge. Ernest Johanson Web Systems Administrator Fuller Theological Seminary On Thu, 26 Aug 1999 [EMAIL PROTECTED] wrote: Date: Thu, 26 Aug 1999 15:30:43 +0200 From: [EMAIL PROTECTED] To: debian-user@lists.debian.org Subject: Files: Debian-to-dos. Is there a way to save a linux-file to a dos-diskette in a dos-readable way? (Say I wanted to show you guys a config-file or something when I'm mailing from an NT-box, not wanting to type the whole thing, or I wanted to take a file from f. x. StarOffice with me to work...) Please don't flame a pitiful 'nix newbie. I'm really trying to learn, and I already love the efficiency of linux compared to my horrible WinNT box at work (breaks down several times a day...) Regards Vitux Error is human; complete disaster takes a computer
Files: Debian-to-dos.
Is there a way to save a linux-file to a dos-diskette in a dos-readable way? (Say I wanted to show you guys a config-file or something when I'm mailing from an NT-box, not wanting to type the whole thing, or I wanted to take a file from f. x. StarOffice with me to work...) Please don't flame a pitiful 'nix newbie. I'm really trying to learn, and I already love the efficiency of linux compared to my horrible WinNT box at work (breaks down several times a day...) Regards Vitux I think all you have to do is to mount the floppy and copy the files to it. IE: mount /dev/fd0 /mnt -t vfat will mount the floppy on /mnt using the dos/windows file system. There is also the issue of crlf to lfcr translation. If there is a problem with that I think there is a utility available to do this. === Amateur Radio, when all else fails! http://www.qsl.net/wa2mze Debian Gnu Linux, Live Free or . __ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com