[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18827: [Feature request] no CR for yes
From: |
Bob Proulx |
Subject: |
bug#18827: [Feature request] no CR for yes |
Date: |
Mon, 27 Oct 2014 23:34:20 -0600 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
George Shuklin wrote:
> Yes is very nice to generate large repeating patterns, but it always adds
> \n at the end. It's OK for the string data but sometimes mess with binary.
>
> Any way to disable it will be really appreciated. F.e. -n key (like for
> 'echo'), or any other.
The 'yes' command is really just a convenience. If you want special
things such as no newline then use printf. It is standard and a good
tool for custom formatted strings.
while true; do printf foo; done
Bob