tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "F. Winter" <winter () PHYSnet ! uni-hamburg ! de>
To: tru64-unix-managers
Subject: AWK question
Date: Tue, 29 Aug 2000 12:23:34 +0000	[thread overview]
Message-ID: <96755188721971.tru64-unix-managers.marc@archive.invalid> (raw)

Hi sysops!


Can anybody tell me how to combine two strings in AWK:

Here is the code that does not work:

for(i=1;i<length(e);i++)
{
  verz=""
  if (substr(e,i,1)==" ")
	verz=verz"\\ "
  else
	verz=verz+substr(e,i,1)
}

The + (plus) in the last line does not work.


Thanks.


--
 Frank Winter          Tel.: +(49)-40-42838-2404
 PHYSnet RZ            Email: winter@PHYSnet.uni-hamburg.de
 Uni Hamburg           
 Jungiusstr. 9
 D-20355 Hamburg       

             reply	other threads:[~2000-08-29 12:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-29 12:23 F. Winter [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-05-23 23:52 awk question 
2001-05-24  7:09 Gerggee George
2001-08-10 14:06 Joe LaCascio
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox