DOSREAD(1) DOSREAD(1) NAME dosread - read, write, dir, delete on PC-DOS diskette SYNOPSIS dosread [ -xdtw ] [ -v ] [ -R ] [ -a ] [ -f floppy ] [ -P_p_a_r_t ] [ pattern ] ... doswrite [ -xdtw ] [ -v ] [ -a ] [ -i_s_i_z_e ] [ -b ] [ -f floppy ] [ -P_p_a_r_t ] pattern ... dosdir [ -xdtw ] [ -v ] [ -R ] [ -a ] [ -f floppy ] [ -P_p_a_r_t ] [ pattern ] ... dosdel [ -xdtw ] [ -v ] [ -a ] [ -f floppy ] [ -P_p_a_r_t ] [ pattern ] ... DESCRIPTION _D_o_s_r_e_a_d allows manipulation of diskettes or fixed disks in IBM PC-DOS format. Several switches control its actions: -x extract files (default, if invoked with a name of _d_o_s_- _r_e_a_d ). All the files that match _p_a_t_t_e_r_n 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 _d_o_s_- _d_e_l ). All files that match _p_a_t_t_e_r_n are deleted from the diskette. _P_a_t_t_e_r_n is treated as for _d_o_s_r_e_a_d. -t table of contents (default, if invoked with a name of _d_o_s_d_i_r). The table of contents of the diskette is printed. _P_a_t_t_e_r_n is treated as for _d_o_s_r_e_a_d. -w writes files (default, if invoked with a name of _d_o_s_w_r_i_t_e). All the files specified by _p_a_t_t_e_r_n are written onto the diskette. Note that any pattern char- acters should NOT be enclosed in quotation marks (e.g. *.c is acceptable, but ``*.c'' is not). -v requests a more verbose printout. For _d_o_s_r_e_a_d, _d_o_s_w_r_i_t_e and _d_o_s_d_e_l, this involves printing a short line giving the action taken. In _d_o_s_d_i_r, it causes more verbose output (similar to the _d_i_r command in PC- DOS) to be printed. -a causes files to be treated as ASCII. With _d_o_s_r_e_a_d, this removes the CR in CR/LF sequences and treats ^Z as an end-of-file indication. With _d_o_s_w_r_i_t_e, 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. -i_s_i_z_e specifies that the diskette be initialized. _S_i_z_e is the size of the diskette (either 360 or 1200) in units of 1024 bytes. If no _s_i_z_e is specified, then the size is determined heuristically. -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 _d_o_s_w_r_i_t_e command as the -b option. The file must be in self- relocating a.out format. -P_p_a_r_t specifies that _f_l_o_p_p_y is to be treated as a PC-DOS fixed disk with a PC-DOS partition table. If _p_a_r_t is specified, then that partition is used; otherwise, the active partition is used. -R recursively processes any PC-DOS subdirectories encoun- tered. BUGS _D_o_s_w_r_i_t_e and _d_o_s_d_e_l 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 [Not at CMU-CS] SEE ALSO _D_i_s_k _O_p_e_r_a_t_i_n_g _S_y_s_t_e_m _V_e_r_s_i_o_n _3._0_0 _T_e_c_h_n_i_c_a_l _R_e_f_e_r_e_n_c_e, 6322677