Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: Nikola Milutinovic <milutinn@EUnet.yu>
Subject: Re: Awk
Date: 1998/11/20	[thread overview]
Message-ID: <3655B28E.840F9B7@EUnet.yu> (raw)
In-Reply-To: 733tj8$meo$1@hdxf08.telecom.ptt.nl

GJH wrote:
> 
> I am looking for a awk statement that can read a number of characters from a
> string. Does anyone has any clue how to accomplish this ?
> 
> for example a string : 'thisisastring'  where I want the first four
> characters : this.

man awk - see function substr

substr ("thisisastring", 1, 4)

Nix.





  reply	other threads:[~1998-11-20  5:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-20  5:00 Awk GJH
1998-11-20  5:00 ` Nikola Milutinovic [this message]
1998-11-20  5:00 ` Awk Doug Chapman USG
1998-11-20  5:00   ` Awk Doug Chapman USG
1998-11-22  5:00     ` Awk Nikola Milutinovic
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