as you say "several" files, it's probably easier to run the same script over each file, rather than write something that searches for the IP address in lots of places and does complicated things.
Create a script, called ip_fix.pl, like this:
while(<>){
s/123\.123\.123\.123/my.host.somewhere.com/g;
print;
}
Call the script like this.
ip_fix.pl < old_file.txt > new_file.txt
check the new file and then rename it so that it overwrites the old file. Mike
________________________________________________________________________________
"Experience is the comb that Nature gives us, after we are bald."
Is that a haiku?
I never could get the hang
of writing those things.