[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
signature.asc
Description: OpenPGP digital signature
- cut -d fails when using a multi-byte delimiter,
Tim Rühsen <=
- Re: cut -d fails when using a multi-byte delimiter, Eric Fischer, 2019/03/26
- Re: cut -d fails when using a multi-byte delimiter, Tim Rühsen, 2019/03/27
- Re: cut -d fails when using a multi-byte delimiter, Kamil Dudka, 2019/03/27
- Re: cut -d fails when using a multi-byte delimiter, Assaf Gordon, 2019/03/27
- Re: cut -d fails when using a multi-byte delimiter, Assaf Gordon, 2019/03/27
- Re: cut -d fails when using a multi-byte delimiter, Kamil Dudka, 2019/03/28
- Re: cut -d fails when using a multi-byte delimiter, Bernhard Voelker, 2019/03/28