|
|
|
|
|
by dotancohen
1320 days ago
|
|
WC has a "character" flag that really just counts bytes: $ echo דותן | wc -c
9
Note that each letter is two bytes, and the newline is an additional byte. So you could pipe (or tree) to wc to count bytes. For a hypothetical stdmeta on fd 3, that might look like this (piping stdout to devnull): $ foo 3>&1 > /dev/null | wc -c
|
|