Print this page
2556 dd should accept M,G,T,... for sizes


 386 specified \fBoperand=\fR\fIvalue\fR is used.
 387 .sp
 388 .LP
 389 For the \fBbs=\fR, \fBcbs=\fR, \fBibs=\fR, and \fBobs=\fR operands, the
 390 application must supply an expression specifying a size in bytes. The
 391 expression, \fBexpr\fR, can be:
 392 .RS +4
 393 .TP
 394 1.
 395 a positive decimal number
 396 .RE
 397 .RS +4
 398 .TP
 399 2.
 400 a positive decimal number followed by \fBk\fR, specifying multiplication by
 401 1024
 402 .RE
 403 .RS +4
 404 .TP
 405 3.




































 406 a positive decimal number followed by \fBb\fR, specifying multiplication by
 407 512
 408 .RE
 409 .RS +4
 410 .TP
 411 4.
 412 two or more positive decimal numbers (with or without \fBk\fR or \fBb\fR)
 413 separated by \fBx\fR, specifying the product of the indicated values.
 414 .RE
 415 .sp
 416 .LP
 417 All of the operands will be processed before any input is read.
 418 .SH USAGE
 419 .sp
 420 .LP
 421 See \fBlargefile\fR(5) for the description of the behavior of \fBdd\fR when
 422 encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).
 423 .SH EXAMPLES
 424 .LP
 425 \fBExample 1 \fRCopying from one tape drive to another
 426 .sp
 427 .LP
 428 The following example copies from tape drive \fB0\fR to tape drive \fB1\fR,
 429 using a common historical device naming convention.
 430 
 431 .sp




 386 specified \fBoperand=\fR\fIvalue\fR is used.
 387 .sp
 388 .LP
 389 For the \fBbs=\fR, \fBcbs=\fR, \fBibs=\fR, and \fBobs=\fR operands, the
 390 application must supply an expression specifying a size in bytes. The
 391 expression, \fBexpr\fR, can be:
 392 .RS +4
 393 .TP
 394 1.
 395 a positive decimal number
 396 .RE
 397 .RS +4
 398 .TP
 399 2.
 400 a positive decimal number followed by \fBk\fR, specifying multiplication by
 401 1024
 402 .RE
 403 .RS +4
 404 .TP
 405 3.
 406 a positive decimal number followed by \fBM\fR, specifying multiplication by
 407 1024*1024
 408 .RE
 409 .RS +4
 410 .TP
 411 4.
 412 a positive decimal number followed by \fBG\fR, specifying multiplication by
 413 1024*1024*1024
 414 .RE
 415 .RS +4
 416 .TP
 417 5.
 418 a positive decimal number followed by \fBT\fR, specifying multiplication by
 419 1024*1024*1024*1024
 420 .RE
 421 .RS +4
 422 .TP
 423 6.
 424 a positive decimal number followed by \fBP\fR, specifying multiplication by
 425 1024*1024*1024*1024*1024
 426 .RE
 427 .RS +4
 428 .TP
 429 7.
 430 a positive decimal number followed by \fBE\fR, specifying multiplication by
 431 1024*1024*1024*1024*1024*1024
 432 .RE
 433 .RS +4
 434 .TP
 435 8.
 436 a positive decimal number followed by \fBZ\fR, specifying multiplication by
 437 1024*1024*1024*1024*1024*1024*1024
 438 .RE
 439 .RS +4
 440 .TP
 441 9.
 442 a positive decimal number followed by \fBb\fR, specifying multiplication by
 443 512
 444 .RE
 445 .RS +4
 446 .TP
 447 10.
 448 two or more positive decimal numbers (with or without \fBk\fR or \fBb\fR)
 449 separated by \fBx\fR, specifying the product of the indicated values.
 450 .RE
 451 .sp
 452 .LP
 453 All of the operands will be processed before any input is read.
 454 .SH USAGE
 455 .sp
 456 .LP
 457 See \fBlargefile\fR(5) for the description of the behavior of \fBdd\fR when
 458 encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).
 459 .SH EXAMPLES
 460 .LP
 461 \fBExample 1 \fRCopying from one tape drive to another
 462 .sp
 463 .LP
 464 The following example copies from tape drive \fB0\fR to tape drive \fB1\fR,
 465 using a common historical device naming convention.
 466 
 467 .sp