help-bash
[Top][All Lists]
Advanced

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

Re: How to read N bytes instead of N characters?


From: Chet Ramey
Subject: Re: How to read N bytes instead of N characters?
Date: Mon, 13 May 2024 15:27:20 -0400
User-agent: Mozilla Thunderbird

On 5/13/24 1:34 PM, Peng Yu wrote:

Is there a way to read N bytes instead of N chars in bash? Thanks.

Set your locale to something like C or POSIX that doesn't do multibyte
character encoding.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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