home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / utility / misc / fileutil.lha / fileutils-3.3 / cat / dd.1 < prev    next >
Encoding:
Text File  |  1992-08-28  |  3.2 KB  |  133 lines

  1.  
  2.  
  3.  
  4. DD(1L)            MISC. REFERENCE MANUAL PAGES             DD(1L)
  5.  
  6.  
  7.  
  8. NAME
  9.      dd - convert a file while copying it
  10.  
  11. SYNOPSIS
  12.      dd [if=file] [of=file]  [ibs=bytes]  [obs=bytes]  [bs=bytes]
  13.      [cbs=bytes]   [skip=blocks]   [seek=blocks]   [count=blocks]
  14.      [conv={ascii,ebcdic,ibm,block,unblock,lcase,ucase,swab,noerror,notrunc,
  15.      sync}]
  16.  
  17. DESCRIPTION
  18.      This manual page documents the GNU version of dd.  dd copies
  19.      a  file  (from the standard input to the standard output, by
  20.      default) with a user-selectable blocksize, while  optionally
  21.      performing conversions on it.
  22.  
  23.   OPTIONS
  24.      Numbers can be followed by a multiplier:
  25.      b=512, k=1024, w=2, xm=number m
  26.  
  27.      _i_f=_f_i_l_e
  28.           Read from _f_i_l_e instead of the standard input.
  29.  
  30.      _o_f=_f_i_l_e
  31.           Write to _f_i_l_e instead of the standard  output.   Unless
  32.           _c_o_n_v=_n_o_t_r_u_n_c is given, truncate _f_i_l_e to the size speci-
  33.           fied by _s_e_e_k= (0 bytes if _s_e_e_k= is not given).
  34.  
  35.      _i_b_s=_b_y_t_e_s
  36.           Read _b_y_t_e_s bytes at a time.
  37.  
  38.      _o_b_s=_b_y_t_e_s
  39.           Write _b_y_t_e_s bytes at a time.
  40.  
  41.      _b_s=_b_y_t_e_s
  42.           Read and write _b_y_t_e_s bytes at atime.  Override ibs  and
  43.           obs.
  44.  
  45.      _c_b_s=_b_y_t_e_s
  46.           Convert _b_y_t_e_s bytes at a time.
  47.  
  48.      _s_k_i_p=_b_l_o_c_k_s
  49.           Skip _b_l_o_c_k_s ibs-sized blocks at start of input.
  50.  
  51.      _s_e_e_k=_b_l_o_c_k_s
  52.           Skip _b_l_o_c_k_s obs-sized blocks at start of output.
  53.  
  54.      _c_o_u_n_t=_b_l_o_c_k_s
  55.           Copy only _b_l_o_c_k_s ibs-sized input blocks.
  56.  
  57.      _c_o_n_v=_c_o_n_v_e_r_s_i_o_n[,_c_o_n_v_e_r_s_i_o_n...]
  58.           Convert the file as specified by the  _c_o_n_v_e_r_s_i_o_n  argu-
  59.           ments.
  60.  
  61.  
  62.  
  63. Sun Release 4.1           Last change:                          1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. DD(1L)            MISC. REFERENCE MANUAL PAGES             DD(1L)
  71.  
  72.  
  73.  
  74.           Conversions:
  75.  
  76.           ascii
  77.                Convert EBCDIC to ASCII.
  78.  
  79.           ebcdic
  80.                Convert ASCII to EBCDIC.
  81.  
  82.           ibm  Convert ASCII to alternate EBCDIC.
  83.  
  84.           block
  85.                Pad newline-terminated records  to  size  of  cbs,
  86.                replacing newline with trailing spaces.
  87.  
  88.           unblock
  89.                Replace trailing spaces in  cbs-sized  block  with
  90.                newline.
  91.  
  92.           lcase
  93.                Change uppercase characters to lowercase.
  94.  
  95.           ucase
  96.                Change lowercase characters to uppercase.
  97.  
  98.           swab Swap every pair of input bytes.  Unlike  the  Unix
  99.                dd,  this  works  when  an odd number of bytes are
  100.                read.  If the input file contains an odd number of
  101.                bytes, the last byte is simply copied (since there
  102.                is nothing to swap it with).
  103.  
  104.           noerror
  105.                Continue after read errors.
  106.  
  107.           notrunc
  108.                Do not truncate the output file.
  109.  
  110.           sync Pad every input block to size of ibs with trailing
  111.                NULs.
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. Sun Release 4.1           Last change:                          2
  130.  
  131.  
  132.  
  133.