On Dec 14, 7:31 pm, Barry Margolin <bar...@alum.mit.edu> wrote:> If so, what you can do is ...
By mathog_caltech_edu
Plus do you daydream about looking deep inside Lisa Simpson's pussy?Go to http://Toontoon.com//...
By his
Hi, I'm having trouble using the Bounces-To: email header. I'm putting it in the email he...
By bubblenut
Hello,If you don't have time, read the last pharagraph. There is my question.I am a web develop...
By horos23
My swap space is reported as 2 gig by free and 1 gig by df, why thedifference? Which is correct?[roo...
By your_name, 1 Comments
gazelle@yin.interaccess.com (Kenny McCormack) writes:> Possible to get CPU time used for a proces...
By dragan_cvetkovic, 1 Comments
Hey, I'm working on a project where I'm updating a MySQL DB through a Java applet. I'...
By rageangel9, 6 Comments
I want to do some mail filtering before I download messages from my ISP's mail server. Since I ...
By broxtor, 4 Comments
on the problem why this would't compile #include <iostream>int main(void){ cout <<...
By scifire, 9 Comments
2004-11-15, 16:48(+00), KKramsch:
> Is there any mechanism in zsh scripts for producing a string by
> concatenating n copies of a substring? I'm thinking something
> analogous to Perl's 'x' operator, e.g.
> "a" x 5 --> "aaaaa"
[...]
Not as such, but there are padding expansion flags:
print ${(l:5::a:):-}
Left pads the empty string (${:-}) with 'a's with width "5".
Right padding example:
$ A=foo
$ print ${(r:30::bar:)A}
foobarbarbarbarbarbarbarbarbar
for a perl-like `x' operator, you need a loop:
var=
repeat 5 var=a$var
Stephane
stephane_chazelas | Wed, 30 Apr 2008 10:39:00 GMT |
KKramsch <karlUNDERSCOREkramsch...yahooperiodcom.invalid> wrote:
> Is there any mechanism in zsh scripts for producing a string by
> concatenating n copies of a substring? I'm thinking something
> analogous to Perl's 'x' operator, e.g.
> "a" x 5 --> "aaaaa"
Not sure about Zsh, but for Bash
http://groups.google.com/groups?sel...1...uni-berlin.de
williampark | Wed, 30 Apr 2008 10:40:00 GMT |
Thus spake KKramsch (karlUNDERSCOREkramsch...yahooPERIODcom.invalid):
> Is there any mechanism in zsh scripts for producing a string by
> concatenating n copies of a substring? I'm thinking something
> analogous to Perl's 'x' operator, e.g.
> "a" x 5 --> "aaaaa"
echo ${(l:5::a:)}
christian_schneider | Wed, 30 Apr 2008 10:41:00 GMT |