mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
Add iseek= and oseek= aliases for the preexisting skip= and seek=
operands. Can _YOU_ tell skip= and seek= apart with 100% accuracy every time? This also seems to make us option-for-option compatible with the Solaris dd(1). Approved by: jkh Suggested by: peter
This commit is contained in:
parent
80d21dc41b
commit
a6d413e7f8
2 changed files with 13 additions and 1 deletions
|
|
@ -82,8 +82,10 @@ static const struct arg {
|
|||
{ "files", f_files, C_FILES, C_FILES },
|
||||
{ "ibs", f_ibs, C_IBS, C_BS|C_IBS },
|
||||
{ "if", f_if, C_IF, C_IF },
|
||||
{ "iseek", f_skip, C_SKIP, C_SKIP },
|
||||
{ "obs", f_obs, C_OBS, C_BS|C_OBS },
|
||||
{ "of", f_of, C_OF, C_OF },
|
||||
{ "oseek", f_seek, C_SEEK, C_SEEK },
|
||||
{ "seek", f_seek, C_SEEK, C_SEEK },
|
||||
{ "skip", f_skip, C_SKIP, C_SKIP },
|
||||
};
|
||||
|
|
|
|||
12
bin/dd/dd.1
12
bin/dd/dd.1
|
|
@ -96,10 +96,20 @@ bytes instead of the default 512.
|
|||
Read input from
|
||||
.Ar file
|
||||
instead of the standard input.
|
||||
.It Cm iseek= Ns Ar n
|
||||
Seek on the input file
|
||||
.Va n
|
||||
blocks. This is a synonym for
|
||||
.Cm skip= Ns Ar n .
|
||||
.It Cm obs= Ns Ar n
|
||||
Set the output block size to
|
||||
.Va n
|
||||
bytes instead of the default 512.
|
||||
.It Cm oseek= Ns Ar n
|
||||
Seek on the output file
|
||||
.Va n
|
||||
blocks. This is a synonym for
|
||||
.Cm seek= Ns Ar n .
|
||||
.It Cm of= Ns Ar file
|
||||
Write output to
|
||||
.Ar file
|
||||
|
|
@ -107,7 +117,7 @@ instead of the standard output.
|
|||
Any regular output file is truncated unless the
|
||||
.Cm notrunc
|
||||
conversion value is specified.
|
||||
If an initial portion of the output file is skipped (see the
|
||||
If an initial portion of the output file is seeked past (see the
|
||||
.Cm seek
|
||||
operand),
|
||||
the output file is truncated at that point.
|
||||
|
|
|
|||
Loading…
Reference in a new issue