coreutils
[Top][All Lists]
Advanced

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

Re: dd: add 'skip_bytes' and 'count_bytes' operands


From: Jérémy Compostella
Subject: Re: dd: add 'skip_bytes' and 'count_bytes' operands
Date: Wed, 8 Feb 2012 16:14:49 +0100

> That leads onto the only other possible implementation I suppose.
> I.E. since we don't need to specify skip and skip_bytes together,
> the option value could select between each mode. I.E.
> skip=2      => skip    2 blocks,
> skip=2b     => skip 1024 blocks,
> skip=2bytes => skip    2 bytes
> Hmm, that's not too bad at all really
I do agree, it looks like a very interesting idea indeed. However, I
have two questions:
1. Why skip=2b => 1024 blocks ?
2. Do you know if there is a utility function somewhere in coreutils or
gnulib which could help me to parse this ? If such a function exists it
could be able to manage more units (bytes, kbytes, megabytes, ...). If
have to write such a function we have to discuss the possibilities I have to
provide.

Cheers,

Jérémy


reply via email to

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