Date: Sun, 29 Aug 1999 16:59:28 +0200 (CEST) From: Oliver Fromme <olli@dorifer.heim3.tu-clausthal.de> To: freebsd-stable@FreeBSD.ORG Subject: Re: Interesting ways to print 3000 spaces... Message-ID: <199908291459.QAA09297@dorifer.heim3.tu-clausthal.de>
next in thread | raw e-mail | index | archive | help
Kai Voigt wrote in list.freebsd-stable: > Oliver Fromme wrote: > > > > When using zsh, it can be done without exec'ing anything > > (only using shell-builtins): > > > > for f in {1..3000}; do echo -n " "; done > > % repeat 3000 echo -n " " Good point. There's an even shorter solution in zsh, which doesn't require 3000 calls to the echo function: echo -n ${(l:3000:)x+} Your turn. :) Regards Oliver -- Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany (Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de) "In jedem Stück Kohle wartet ein Diamant auf seine Geburt" (Terry Pratchett) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908291459.QAA09297>