I have this current script, that a few of you helped me get working a few weeks ago. Thanks everybody. Now I need to modify it to be a little more flexible.
BEGIN {
num = 0
while ((getline < "dc.users") > 0) {
nam[num] = $0
num++
}
}
{
for (j=0;j<num;j++) {...
Hello all,
I'm new to this site and have what I hope is a simple AWK problem...
I need to search a file and add text to a line if the criteria is correct.
If I have the following file:
bob Password = "password"
Service-Type=Framed-User
Session-Timeout=9000...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.