Okay. Got asked this one today and I had to go remind myself how to do this in AIX.

AIX has :-

  • doswrite – to write to DOS floppies
  • dosread – to read from DOS floppies
  • dosdir – to list contents of floppies
  • Floppies, in the AIX world normal means using the /dev/fd0 device (or /dev/fd1 for a second floppy drive etc.).

    Writing files from the current directory to a DOS-formatted floppy:

    for i in *
    do
       doswrite $i $i
    done

    Reading files from a DOS-formatted floppy to the current directory:

    dosdir | awk '!/There are/ {print $1}'|xargs -t -i dosread {} {}

    Please note : the commands here assume you are using /dev/fd0. If you are using something else, you should add the -D option. See man pages.

    About troyski

    I'm a freelance UNIX engineer working in the UK. I'm married to Tina and between us we have six children. I'm a bit of an Apple fan boy, and all the Windows machines in the house are a thing of the past now.

    Leave a Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Post navigation