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