Date: Sun, 29 Aug 1999 17:39:23 -0700 From: "Sameer R. Manek" <manek@best.com> To: <freebsd-stable@FreeBSD.ORG> Subject: RE: Interesting ways to print 3000 spaces... Message-ID: <000201bef280$1b3a64e0$2200000a@after.school.org> In-Reply-To: <199908291459.QAA09297@dorifer.heim3.tu-clausthal.de>
next in thread | previous in thread | raw e-mail | index | archive | help
> [mailto:owner-freebsd-stable@FreeBSD.ORG]On Behalf Of Oliver Fromme
> Sent: Sunday, August 29, 1999 7:59 AM
> To: freebsd-stable@FreeBSD.ORG
> Subject: Re: Interesting ways to print 3000 spaces...
>
>
> 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. :)
>
While I'm sure everyone is impressed with your ability to create 3000 spaces
this is off lists' topic. There are probably 3000 ways to do that in as many
languages.
This thread should be considered dead, anyone who wants to continue
discussion,
private email.
Sameer
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?000201bef280$1b3a64e0$2200000a>
