aboutsummaryrefslogtreecommitdiff
path: root/coreutils/dd.c
diff options
context:
space:
mode:
authorPere Orga <gotrunks@gmail.com>2011-03-31 14:43:25 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-03-31 14:43:25 +0200
commit34425389e09353a8dacdd6b23a62553f699c544c (patch)
tree4eb2e19685536384748e75af827deca885c9cc0a /coreutils/dd.c
parente3d8d077b7d2e51fed03dc20267eadbe38903b2a (diff)
downloadbusybox-w32-34425389e09353a8dacdd6b23a62553f699c544c.tar.gz
busybox-w32-34425389e09353a8dacdd6b23a62553f699c544c.tar.bz2
busybox-w32-34425389e09353a8dacdd6b23a62553f699c544c.zip
move help text from include/usage.src.h to coreutils/*.c
Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/dd.c')
-rw-r--r--coreutils/dd.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c
index 9973a145b..8a2eaed72 100644
--- a/coreutils/dd.c
+++ b/coreutils/dd.c
@@ -8,6 +8,39 @@
8 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 8 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
9 */ 9 */
10 10
11//usage:#define dd_trivial_usage
12//usage: "[if=FILE] [of=FILE] " IF_FEATURE_DD_IBS_OBS("[ibs=N] [obs=N] ") "[bs=N] [count=N] [skip=N]\n"
13//usage: " [seek=N]" IF_FEATURE_DD_IBS_OBS(" [conv=notrunc|noerror|sync|fsync]")
14//usage:#define dd_full_usage "\n\n"
15//usage: "Copy a file with converting and formatting\n"
16//usage: "\nOptions:"
17//usage: "\n if=FILE Read from FILE instead of stdin"
18//usage: "\n of=FILE Write to FILE instead of stdout"
19//usage: "\n bs=N Read and write N bytes at a time"
20//usage: IF_FEATURE_DD_IBS_OBS(
21//usage: "\n ibs=N Read N bytes at a time"
22//usage: )
23//usage: IF_FEATURE_DD_IBS_OBS(
24//usage: "\n obs=N Write N bytes at a time"
25//usage: )
26//usage: "\n count=N Copy only N input blocks"
27//usage: "\n skip=N Skip N input blocks"
28//usage: "\n seek=N Skip N output blocks"
29//usage: IF_FEATURE_DD_IBS_OBS(
30//usage: "\n conv=notrunc Don't truncate output file"
31//usage: "\n conv=noerror Continue after read errors"
32//usage: "\n conv=sync Pad blocks with zeros"
33//usage: "\n conv=fsync Physically write data out before finishing"
34//usage: )
35//usage: "\n"
36//usage: "\nNumbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024),"
37//usage: "\nMD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)"
38//usage:
39//usage:#define dd_example_usage
40//usage: "$ dd if=/dev/zero of=/dev/ram1 bs=1M count=4\n"
41//usage: "4+0 records in\n"
42//usage: "4+0 records out\n"
43
11#include "libbb.h" 44#include "libbb.h"
12 45
13/* This is a NOEXEC applet. Be very careful! */ 46/* This is a NOEXEC applet. Be very careful! */