> 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