|
| From: | Paul Eggert |
| Subject: | bug#19240: cut 8.22 adds newline |
| Date: | Thu, 04 Dec 2014 12:39:16 -0800 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 |
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.
| [Prev in Thread] | Current Thread | [Next in Thread] |