aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/dd.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-10-17 16:21:37 -0700
committerRob Landley <rob@landley.net>2018-10-20 14:52:08 -0500
commit74f22a7d5cb6ed03f00c261fb4e28b411f1c4c0a (patch)
tree7dcfe85f05948afe402a9a399d0d37d6a7d4d23a /toys/pending/dd.c
parent3727bafda4093dffaec93a9f679f997c3df8bf70 (diff)
downloadtoybox-74f22a7d5cb6ed03f00c261fb4e28b411f1c4c0a.tar.gz
Some more --help consistency.
From eyeballing the output of for i in `./toybox | tr " " "\n"` ; do ./toybox $i --help ; done | \ grep '^-' | grep -v "\t"
Diffstat (limited to 'toys/pending/dd.c')
-rw-r--r--toys/pending/dd.c31
1 files changed, 16 insertions, 15 deletions
diff --git a/toys/pending/dd.c b/toys/pending/dd.c
index aebc90e8..e37f8b28 100644
--- a/toys/pending/dd.c
+++ b/toys/pending/dd.c
@@ -16,21 +16,22 @@ config DD
usage: dd [if=FILE] [of=FILE] [ibs=N] [obs=N] [bs=N] [count=N] [skip=N]
[seek=N] [conv=notrunc|noerror|sync|fsync] [status=noxfer|none]
- Options:
- if=FILE Read from FILE instead of stdin
- of=FILE Write to FILE instead of stdout
- bs=N Read and write N bytes at a time
- ibs=N Read N bytes at a time
- obs=N Write N bytes at a time
- count=N Copy only N input blocks
- skip=N Skip N input blocks
- seek=N Skip N output blocks
- conv=notrunc Don't truncate output file
- conv=noerror Continue after read errors
- conv=sync Pad blocks with zeros
- conv=fsync Physically write data out before finishing
- status=noxfer Don't show transfer rate
- status=none Don't show transfer rate or records in/out
+ Copy/convert files.
+
+ if=FILE Read from FILE instead of stdin
+ of=FILE Write to FILE instead of stdout
+ bs=N Read and write N bytes at a time
+ ibs=N Read N bytes at a time
+ obs=N Write N bytes at a time
+ count=N Copy only N input blocks
+ skip=N Skip N input blocks
+ seek=N Skip N output blocks
+ conv=notrunc Don't truncate output file
+ conv=noerror Continue after read errors
+ conv=sync Pad blocks with zeros
+ conv=fsync Physically write data out before finishing
+ status=noxfer Don't show transfer rate
+ status=none Don't show transfer rate or records in/out
Numbers may be suffixed by c (*1), w (*2), b (*512), kD (*1000), k (*1024),
MD (*1000*1000), M (*1024*1024), GD (*1000*1000*1000) or G (*1024*1024*1024).