NetBSD/bin/dd
jym 234ccf064a Add a new command to dd(1): msgfmt. The command modifies the
output of the information summary returned by dd(1). This can be used
to specify messages in a more usable (or parseable) format like
human-readable values.

My intent is to re-use this for building image files and quick I/O
benchmarking.

Reviewed by tsutsui@ on tech-userlevel. See also
http://mail-index.netbsd.org/tech-userlevel/2010/12/03/msg004179.html

Some examples:

 $ dd if=/dev/zero of=/dev/null bs=1m count=1 msgfmt=human
1+0 records in
1+0 records out
1048576 bytes (1,0 MB) transferred in 0.001 secs (1048576000 bytes/sec - 1,0 GB/sec)

 $ dd if=/dev/zero of=/dev/null count=1 msgfmt='
 > <speed>%E</speed>
 > <time>%s</time>
 > <bytes>%b</bytes>
 > '
<speed>500 KB/sec</speed>
<time>0.001</time>
<bytes>512</bytes>
2011-11-06 21:22:23 +00:00
..
args.c Add a new command to dd(1): msgfmt. The command modifies the 2011-11-06 21:22:23 +00:00
conv_tab.c
conv.c
dd_hostops.c Remove the rif/rof options and add rump.dd. This makes usage 2011-02-04 19:42:12 +00:00
dd_rumpops.c Remove the rif/rof options and add rump.dd. This makes usage 2011-02-04 19:42:12 +00:00
dd.1 Add a new command to dd(1): msgfmt. The command modifies the 2011-11-06 21:22:23 +00:00
dd.c Add a new command to dd(1): msgfmt. The command modifies the 2011-11-06 21:22:23 +00:00
dd.h Remove the rif/rof options and add rump.dd. This makes usage 2011-02-04 19:42:12 +00:00
extern.h Add a new command to dd(1): msgfmt. The command modifies the 2011-11-06 21:22:23 +00:00
Makefile Add a new command to dd(1): msgfmt. The command modifies the 2011-11-06 21:22:23 +00:00
misc.c Add a new command to dd(1): msgfmt. The command modifies the 2011-11-06 21:22:23 +00:00
position.c Add two new operands: "rif" and "rof". They operate exactly like 2010-11-22 21:04:27 +00:00