// Reads bytes from stdin and writes a hexadecimal view like a
no-frills xxd.
// All the actual formatting work is done by format's sweet range
syntax
void main(string[] args)
{
import std.getopt;
uint bytesPerLine = 8;
args.getopt(
"cols|c", &bytesPerLine
On Thu, Jan 04, 2018 at 12:25:59AM +, Justin Whear via Digitalmars-d wrote:
> // Reads bytes from stdin and writes a hexadecimal view like a no-frills
> xxd.
> // All the actual formatting work is done by format's sweet range syntax
Mmm, I like this! Care to submit a PR for this in the dlang.
On Thursday, 4 January 2018 at 00:35:56 UTC, H. S. Teoh wrote:
On Thu, Jan 04, 2018 at 12:25:59AM +, Justin Whear via
Digitalmars-d wrote:
// Reads bytes from stdin and writes a hexadecimal view like a
no-frills
xxd.
// All the actual formatting work is done by format's sweet
range syntax
On Thursday, 4 January 2018 at 00:54:12 UTC, Seb wrote:
On Thursday, 4 January 2018 at 00:35:56 UTC, H. S. Teoh wrote:
On Thu, Jan 04, 2018 at 12:25:59AM +, Justin Whear via
Digitalmars-d wrote:
// Reads bytes from stdin and writes a hexadecimal view like
a no-frills
xxd.
// All the actual