Code Comments
Programming Forum and web based access to our favorite programming groups.Janis Papanagnou wrote: > And don't forget initializing z... > > z = "" Isn't that the default? -- All the commands are tested with bash and GNU tools, so they may use nonstandard features. I try to mention when something is nonstandard (if I'm aware of that), but I may miss something. Corrections are welcome.
Post Follow-up to this messageOn 1 Apr., 09:48, pk <p...@pk.invalid> wrote:
> Janis Papanagnou wrote:
>
>
> Isn't that the default?
Only initially, but not if you need to reset it for every
input line as in this application context... (see upthread
for the original program)
{ z =3D ""
for (x=3Dnr; x<=3DNF; x++)
z =3D z " " $x
print substr(z, 2)
}
Janis
Post Follow-up to this messageJanis wrote: > On 1 Apr., 09:48, pk <p...@pk.invalid> wrote: > > Only initially, but not if you need to reset it for every > input line as in this application context... Ok, that was my daily pre-coffee nonsense. :-) -- All the commands are tested with bash and GNU tools, so they may use nonstandard features. I try to mention when something is nonstandard (if I'm aware of that), but I may miss something. Corrections are welcome.
Post Follow-up to this messageOn 3/31/2008 12:56 PM, Janis Papanagnou wrote: > Janis Papanagnou wrote: > > > > And don't forget initializing z... > > z = "" > > or: z=$nr for (x=nr+1; x<=NF; x++) z = z " " $x print z Ed.
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.