summaryrefslogtreecommitdiffstats
path: root/bin/dd/dd.1
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-08-15 19:10:05 +0000
committerrwatson <rwatson@FreeBSD.org>2004-08-15 19:10:05 +0000
commit9e69bea9f10d447d337c54d6f5378346f998434f (patch)
treec508168354348245f2a483698e91245e93ecf503 /bin/dd/dd.1
parent7e0b05723702eca98bf7ece454b0be3fac59f877 (diff)
downloadFreeBSD-src-9e69bea9f10d447d337c54d6f5378346f998434f.zip
FreeBSD-src-9e69bea9f10d447d337c54d6f5378346f998434f.tar.gz
Add a "fillchar" command line argument to dd(1) that permits the user
to specify an alternative padding character when using a conversion mode, or when using noerror with sync and an input error occurs. This facilities reading old and error-prone media by allowing the user to more effectively mark error blocks in the output stream.
Diffstat (limited to 'bin/dd/dd.1')
-rw-r--r--bin/dd/dd.111
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/dd/dd.1 b/bin/dd/dd.1
index 1cbe499..6f3298e 100644
--- a/bin/dd/dd.1
+++ b/bin/dd/dd.1
@@ -84,6 +84,13 @@ Copy
.Ar n
input files before terminating.
This operand is only applicable when the input device is a tape.
+.It Cm fillchar Ns = Ns Ar c
+When padding a block in conversion mode or due to use of
+.Cm noerror
+and
+.Cm sync
+modes, fill with the specified ASCII character, rather than using a space
+or nul.
.It Cm ibs Ns = Ns Ar n
Set the input block size to
.Ar n
@@ -247,6 +254,10 @@ with
bytes (or with spaces if a block oriented conversion value was
specified) and processed as a normal input buffer.
If the
+.Cm fillchar
+option is specified, the fill char provided on the command line will override
+the automatic selection of fill character.
+If the
.Cm sync
conversion is not specified, the input block is omitted from the output.
On input files which are not tapes or pipes, the file offset
OpenPOWER on IntegriCloud