Getting the length of a string 
Author Message
 Getting the length of a string

What function can I use to return the length of a string? Once I have this,
I need the function to return a substring.

ANy help is appreciated.



Sat, 27 Jan 2001 03:00:00 GMT  
 Getting the length of a string

Quote:

> What function can I use to return the length of a string?

length()

Quote:
> Once I have this, I need the function to return a substring.

substr()

These functions are well documented in the awk man pages and in
_The AWK Programming Language_.

--
Jim Monty

Tempe, Arizona USA



Sat, 27 Jan 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Getting a CRC for a Dynamic Length String...

2. Getting true length of a variable length record - IBM Mainframe

3. Determning length of varable length string

4. String length of a binary string?

5. Getting Ascii string from hex 'string'

6. gets line length threshold

7. getting length of a register help

8. Getting the length of a field.

9. string length probleme...

10. HELP: string length limit in awk

11. Counting Length of Strings Q

12. length of shortest string in list

 

 
Powered by phpBB® Forum Software