coreutils
[Top][All Lists]
Advanced

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

cut -d fails when using a multi-byte delimiter


From: Tim Rühsen
Subject: cut -d fails when using a multi-byte delimiter
Date: Tue, 26 Mar 2019 15:15:34 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1

Hi,

was just trying to "grep saved *.log|cut -d‘ -f2" on a wget log file and get

cut: the delimiter must be a single character
Try 'cut --help' for more information.

Well, I am in a en_US.UTF-8 locale and that ‘ is a single character for
me (but of course not a single byte).

$ echo -n ‘|od -t x1
0000000 e2 80 98


As a work-around i can use awk, but cut is just so cute and handy :-)

Are there any plans to implement multi-byte support for -d ?

Regards, Tim

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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