[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch #4978] hexadecimal support for dd

From: Eric Blake
Subject: [patch #4978] hexadecimal support for dd
Date: Thu, 23 Mar 2006 06:12:47 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20060111 Firefox/

Follow-up Comment #2, patch #4978 (project coreutils):

How about introducing new operands?  POSIX requires 'x' to mean
multiplication of decimal values in bs, cbs, ibs, and obs; but for count,
skip, and seek, it only documents a value 'n'.  So for the former, why not
introduce bsx, cbsx, ibsx, and obsx that take a single integer in any radix
(or at least a standard C literal integer) with optional multiplier?  count,
skip, and seek can be modified directly to accept hexadecimal.

So your above example would then be written:
dd if=/dev/zero of=test bsx=0xe0000 count=1

And if you wanted to be POSIX compliant, without resorting to perl, try
something like:
dd if=/dev/zero of=test bs=14x16x4k count=1


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]