What is the use of string function sub(regex,replacement,string)?
Answer / Arpita Gupta
The sub() function in AWK replaces the first occurrence of regex in a given string with replacement. It takes an additional argument for the input string.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of ARGIND?
What are AWK Numerical Functions?
What is NR in AWK?
What is the use of numeric function sqrt ?
What is the use of format specifier %s ?
What is the use of FIELDWIDTHS?
What is the use of numeric function int ?
How to generate random numbers in AWK?
What is the use of SUBSEP?
What is the use of format specifier %d ?
What is the use of format specifier %f ?
What is the use of string function asorti(string,[d])?