Subject: Re: bug#19240: cut 8.22 adds newline

From: Paul Eggert <[email-masked]>
Date: Thu, 04 Dec 2014 12:39:16 -0800

On 12/04/2014 10:41 AM, John Kendall wrote:
> echo "$FILE ===========================\c"| cut -c1-30

Since you're going to have to rewrite it anyway if you want it to be 
portable, I suggest doing it this way:

printf '%.30s' "$FILE ==========================="

as it's a lot more efficient anyway.