⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dd.1

📁 UNIX v6源代码 这几乎是最经典的unix版本 unix操作系统设计和莱昂氏unix源代码分析都是用的该版
💻 1
字号:
.th DD I 5/15/74.sh NAMEdd \*- convert and copy a file.sh SYNOPSIS.bd dd[option=value] ....sh DESCRIPTION.it Ddcopies the specified input fileto the specified output withpossible conversions.The standard input and output are used by default.The input and output block size may bespecified to take advantage of raw physical I/O..s3.ft I.lp +15 15option	values.ft R.lp +15 15if=	input file name; standard input is default.lp +15 15of=	output file name; standard output is default.lp +15 15ibs=	input block size (default 512).lp +15 15obs=	output block size (default 512).lp +15 15bs=	set both input and output block size,superseding.it ibsand.it obs;also, if no conversion is specified,it is particularly efficient since no copy need be done.lp +15 15cbs=\fIn\fR	conversion buffer size.lp +15 15skip=\fIn\fR	skip \fIn\fR input records before starting copy.lp +15 15count=\fIn\fR	copy only \fIn\fR input records.lp +15 15conv=ascii	convert EBCDIC to ASCII.lp +15 10ebcdic	convert ASCII to EBCDIC.lp +15 10lcase	map alphabetics to lower case.lp +15 10ucase	map alphabetics to upper case.lp +15 10swab	swap every pair of bytes.lp +15 10noerror	do not stop processing on an error.lp +15 10sync	pad every input record to \fIibs\fR.lp +15 10.li... , ...	several comma-separated conversions.i0.s3.fiWhere sizes are specified,a number of bytes is expected.A number may end with.bd "k, b"or.bd wto specify multiplication by1024, 512, or 2 respectively.Also a pair of numbers may be separated by.bd xto indicate a product..s3.it Cbsis used only if.it asciior.it ebcdicconversion is specified.In the former case.it cbscharacters are placed into the conversion buffer, converted toASCII, and trailing blanks trimmed and new-line addedbefore sending the line to the output.In the latter case ASCII characters are read into theconversion buffer, converted to EBCDIC, and blanks addedto make up anoutput record of size.it cbs..s3After completion,.it ddreports the number of whole and partial input and outputblocks..s3For example, to read an EBCDIC tape blocked ten 80-byteEBCDIC card images per record into the ASCII file.it x:.s3dd  if=/dev/rmt0  of=x  ibs=800  cbs=80  conv=ascii,lcase.s3Note the use of raw magtape..it Ddis especially suited to I/O on the rawphysical devices because it allows readingand writing in arbitrary record sizes..sh "SEE ALSO"cp (I).sh BUGSThe ASCII/EBCDIC conversion tables aretakenfrom the 256 character standard inthe CACM Nov, 1968.It is not clear how this relates to real life..s3Newlines are inserted only on conversion to ASCII;padding is done only on conversion to EBCDIC.There should be separate options.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -