AWK question

From: F. Winter <winter_at_PHYSnet.uni-hamburg.de>
Date: Tue, 29 Aug 2000 14:23:34 +0200 (MET DST)

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_at_PHYSnet.uni-hamburg.de
 Uni Hamburg           
 Jungiusstr. 9
 D-20355 Hamburg       
Received on Tue Aug 29 2000 - 12:26:55 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT