Okay, my input file looks like this:
machine 192.168.1.26
login yourname
password password
My script looks like this:
{
print $0 sub(/192.168.1.26/, "0.0.0.0") > file
}
My output is this:
machine 0.0.0.0 1
login yourname0
password password0
Is there any way I can get it to use...
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.