coreutils
[Top][All Lists]
Advanced

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

[PATCH] paste: support multi-byte --delimiters


From: Pádraig Brady
Subject: [PATCH] paste: support multi-byte --delimiters
Date: Tue, 13 Jan 2026 00:39:19 +0000
User-agent: Mozilla Thunderbird Beta

I often need to count characters, so wanted to make ruler helper like:

  $ ruler() { yes 123456789 | head -n100 | src/paste -s -d¹²³⁴⁵⁶⁷⁸⁹⁰ | cut 
-c-$COLUMNS; }

So I could do things like:

  $ yes foo | head -n10 | paste -s -d.; ruler
  foo.foo.foo.foo.foo.foo.foo.foo.foo.foo
  123456789¹123456789²123456789³123456789⁴123456789⁵123456789⁶123456789⁷

But paste(1) needs multi-byte support for that,
which the attached implements.

cheers,
Padraig

Attachment: paste-multi-byte.patch
Description: Text Data


reply via email to

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