Chargen patch

Rich Felker dalias at aerifal.cx
Tue Nov 7 14:10:45 PST 2006


On Tue, Nov 07, 2006 at 11:54:56AM -0500, Clem Taylor wrote:
> I don't know if you have awk in your busybox, but I needed to do
> something like this and I
> 
> pad=1024
> awk -v cnt=$pad 'BEGIN{for(i=0;i<cnt;i++){printf("%c",255);}}' >> filename

While this works, the dd/tr solution is a LOT more efficient.

Rich



More information about the busybox mailing list