DOSREAD(1) —
NAME
dosread − read, write, dir, delete on PC-DOS diskette
SYNOPSIS
dosread [ −xdtw ] [ −v ] [ −R ] [ −a ] [ −I ] [ −f floppy] [ −ppart ] [ −Tinfo ] [ pattern ] ...
doswrite [ −xdtw ] [ −v ] [ −a ] [ −isize ] [ −b ] [ −f floppy ] [ −ppart ] files ...
dosdir [ −xdtw ] [ −v ] [ −R ] [ −a ] [ −f floppy ] [ −ppart ] [ pattern ] ...
dosdel [ −xdtw ] [ −v ] [ −a ] [ −f floppy ] [ −ppart ] [ pattern ] ...
DESCRIPTION
Dosread allows manipulation of diskettes or fixed disks in IBM PC-DOS format. Several switches control its actions:
−x Extracts files (default, if invoked with a name of dosread ). All the files that match pattern are extracted from the diskette. The pattern can contain pattern-match characters (∗, ?, [...]) which should be enclosed in quotation marks to prevent the shell from expanding them prematurely. If no pattern is specified, all files are used.
−d Deletes files (default, if invoked with a name of dosdel ). All files that match pattern are deleted from the diskette. Pattern is treated as for dosread.
−t Table of contents (default, if invoked with a name of dosdir). The table of contents of the diskette is printed. Pattern is treated as for dosread.
−w Writes files (default, if invoked with a name of doswrite). All the files specified by files are written onto the diskette. Note that any pattern characters should NOT be enclosed in quotation marks (e.g. ∗.c is acceptable, but “∗.c” is not).
−v Requests a more verbose printout. For dosread, doswrite and dosdel, this involves printing a short line giving the action taken. In dosdir, it causes more verbose output (similar to the dir command in PC-DOS) to be printed.
−a Causes files to be treated as ASCII. With dosread, this removes the CR in CR/LF sequences and treats ^Z as an end-of-file indication. With doswrite, it inserts a CR before LF and appends a ^Z to the end of the file.
−f Specifies that the following argument contain the name of the file containing the PC-DOS file system, instead of the default diskette drive.
−isize Specifies that the diskette be initialized. Size is the size of the diskette (either 360 or 1200) in units of 1024 bytes. If no size is specified, then the size is determined heuristically.
−I Ignores information in the boot sector and determines diskette type solely from FAT type code.
−b Specifies that an RT PC boot block is to be written into block zero of the diskette. The ROS IPL procedure attempts to load the first file on the diskette. This file must occupy contiguous blocks. To insure this, specify the -i option and the file in the same doswrite command as the -b option. The file must be in self-relocating a.out format. If the −b option is not specified when a diskette is initialized, a PC/DOS boot block will be installed (if it exists) from the file /usr/mdec/fd∗pcdosboot where ∗ is the size of the diskette in K byte units.
−ppart
Specifies that floppy is to be treated as a PC-DOS fixed disk with a PC-DOS partition table. If part is specified, then that partition is used; otherwise, the active partition is used.
−R Recursively processes any PC-DOS subdirectories encountered.
−Tinfo
Allows specification of new diskette parameters (info values are specified as a comma-separated list), and are: fat_type, fat_size, sectors, heads, dir_sectors, cluster_size, tracks, size, and fat_copes. Each may be specified as either a decimal or hex (with leading 0x) constant. The info items and order may change in a later version of dosread.
BUGS
Doswrite and dosdel still do not process subdirectories.
FILES
/dev/fd0 for the default case -- the diskette drive (360k or 1.2Mb)
/usr/mdec/fd∗dosboot -- for the various boot blocks
SEE ALSO
Disk Operating System Version 3.00 Technical Reference, 6322677
PRPQs 5799-WZQ/5799-PFF: IBM/4.3 — Sept 1988