Project

General

Profile

Actions

Bug #2556

closed

dd should accept M,G,T,... for sizes

Added by Josef Sipek about 11 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
-
Start date:
2012-03-28
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

Description

dd accepts 'k' suffix to mean multiply-by-1024. GNU dd accepts other suffixes to represent mega, giga, etc.

Actions #1

Updated by Rich Lowe about 11 years ago

  • Status changed from New to Resolved
  • % Done changed from 30 to 100
  • Tags deleted (needs-triage)

Resolved in r13670 commit:25dba56d858d

Actions #2

Updated by Richard PALO about 11 years ago

for your reading pleasure
http://physics.nist.gov/cuu/Units/binary.html
http://en.wikipedia.org/wiki/Binary_prefix

GNU's not Unix, it's not SI nor IEC either

Actions #3

Updated by Josef Sipek about 11 years ago

I checked the GNU dd's man page. They say:

       BLOCKS  and  BYTES may be followed by the following multiplicative suffixes: c =1, w =2, b =512,
       kB =1000, K =1024, MB =1000*1000, M =1024*1024, xM =M GB =1000*1000*1000, G =1024*1024*1024, and
       so on for T, P, E, Z, Y.

I added [MGTPEZ] but not [MGTPEZ]B which would require a whole lot more parsing code.

Actions

Also available in: Atom PDF