adspace


What is the use of string function sub(regex,replacement,string)?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category