Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. uruski

    gensub and variables as regexp and replacement

    Let's say there is a file with two lines: xxx123yyy xxx333yyy I want to use gensub function, when regexp pattern and replacement are kept in variables. Lets say script looks like this: BEGIN{ pattern="/^xxx(.+)yyy$/"; output="\\1"; } { print gensub(pattern,output,"g",$0); } I'd expect...

Part and Inventory Search

Back
Top